Class: OAuth2::Strategy::DelegatedAuthorization

Inherits:
Base
  • Object
show all
Defined in:
lib/omniauth/strategies/idq.rb

Instance Method Summary collapse

Instance Method Details

#authorize_params(params = {}) ⇒ Object

The required query parameters for the authorize URL is an exact copy of the same method in the AuthCode Strategy

Parameters:

  • params (Hash) (defaults to: {})

    additional query parameters



11
12
13
# 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 = {}) ⇒ Object

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

Parameters:

  • params (Hash) (defaults to: {})

    additional query parameters for the URL



19
20
21
# File 'lib/omniauth/strategies/idq.rb', line 19

def authorize_url(params = {})
  @client.delegated_authorization_url(authorize_params.merge(params))
end