0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-25 18:50:27 +01:00

add parameter constraints for callback controller

Dieser Commit ist enthalten in:
Robert Barrow 2019-05-29 23:18:38 +01:00
Ursprung fdecbe155e
Commit 3da8833410

Datei anzeigen

@ -5,7 +5,10 @@ class CustomWizard::AuthorizationController < ::ApplicationController
:verify_authenticity_token :verify_authenticity_token
def callback def callback
# TODO: work out which service it relates to!
params.require(:service)
params.require(:code)
CustomWizard::Authorization.set_code(service, params[:code]) CustomWizard::Authorization.set_code(service, params[:code])
CustomWizard::Authorization.get_access_token(service) CustomWizard::Authorization.get_access_token(service)
end end