class OAuth2::Strategy::DelegatedAuthorization

Public Instance Methods

authorize_params(params = {}) click to toggle source

The required query parameters for the authorize URL is an exact copy of the same method in the AuthCode Strategy @param [Hash] params additional query parameters

# File lib/omniauth/strategies/idq.rb, line 11
def authorize_params(params = {})
  params.merge('response_type' => 'code', 'client_id' => @client.id)
end
authorize_url(params = {}) click to toggle source

The authorization URL endpoint of the provider Similar to the AuthCode Strategy, but in this case call Client::delegated_authorization_url() to construct the authorization URL @param [Hash] params additional query parameters for the URL

# File lib/omniauth/strategies/idq.rb, line 19
def authorize_url(params = {})
  @client.delegated_authorization_url(authorize_params.merge(params))
end