lib/omniauth/strategies/exvo.rb in omniauth-exvo-0.0.1 vs lib/omniauth/strategies/exvo.rb in omniauth-exvo-0.0.2
- old
+ new
@@ -11,12 +11,12 @@
:site => ::Exvo::Helpers.auth_uri,
:token_url => ::Exvo::Helpers.auth_uri + '/oauth/access_token'
}
def request_phase
- options[:scope] = request["scope"] if request["scope"]
- options[:state] = request["state"] if request["state"]
- options[:x_sign_up] = request["x_sign_up"] if request["x_sign_up"]
+ %w(scope state x_sign_up).each do |param|
+ options[:authorize_params][param.to_sym] = request[param] if request[param]
+ end
super
end
def callback_phase
set_failure_handler