1
0
Fork 0

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