Method: PayPal::SDK::Core::OpenIDConnect.authorize_url

Defined in:
lib/paypal-sdk/core/openid_connect.rb

.authorize_url(params = {}) ⇒ Object



27
28
29
30
31
32
33
34
35
36
# File 'lib/paypal-sdk/core/openid_connect.rb', line 27

def authorize_url(params = {})
  uri = URI(url_for_mode(AUTHORIZATION_URL))
  uri.query = api.encode_www_form({
    :response_type => "code",
    :scope => DEFAULT_SCOPE,
    :client_id => RequestDataType.client_id,
    :redirect_uri => api.config.openid_redirect_uri
  }.merge(params))
  uri.to_s
end