lib/omniauth/strategies/bunq.rb in omniauth-bunq-0.1.4 vs lib/omniauth/strategies/bunq.rb in omniauth-bunq-0.1.5
- old
+ new
@@ -2,33 +2,13 @@
module OmniAuth
module Strategies
class Bunq < OmniAuth::Strategies::OAuth2
option :client_options, {
- :site => 'https://oauth.bunq.com/auth',
- :authorize_url => 'https://oauth.bunq.com/auth',
- :token_url => 'https://api.oauth.bunq.com/v1/token'
+ site: "https://oauth.bunq.com",
+ authorize_url: "/auth",
+ token_url: "https://api.oauth.bunq.com/v1/token"
}
-
- def request_phase
- super
- end
-
- def authorize_params
- super.tap do |params|
- %w[scope client_options].each do |v|
- if request.params[v]
- params[v.to_sym] = request.params[v]
- end
- end
- end
- end
-
- def token_params
- super.tap do |params|
- params[:grant_type] = "authorization_code"
- end
- end
uid do
puts options
request.params[options.uid_field.to_s]
end