add parameter constraints for callback controller
Dieser Commit ist enthalten in:
Ursprung
fdecbe155e
Commit
3da8833410
1 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
|
@ -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
|
||||||
|
|
Laden …
In neuem Issue referenzieren