0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-14 05:52:52 +01:00
discourse-custom-wizard/controllers/authorization.rb

16 Zeilen
442 B
Ruby

2019-05-22 12:46:34 +02:00
class CustomWizard::AuthorizationController < ::ApplicationController
skip_before_action :check_xhr,
:preload_json,
:redirect_to_login_if_required,
:verify_authenticity_token
def callback
params.require(:service)
params.require(:code)
2019-05-22 12:46:34 +02:00
CustomWizard::Authorization.set_code(service, params[:code])
CustomWizard::Authorization.get_access_token(service)
end
end