Class: OAuth2::Client
- Inherits:
-
Object
- Object
- OAuth2::Client
- Defined in:
- lib/omniauth/strategies/idq.rb
Instance Method Summary collapse
-
#delegated_authorization ⇒ Object
Creates a Delegated Authorization OAuth2 Strategy for the OAuth2 client.
-
#delegated_authorization_url(params = {}) ⇒ Object
The authorize endpoint URL of the OAuth2 provider we add support for generating a Delegated Authorization URL.
Instance Method Details
#delegated_authorization ⇒ Object
Creates a Delegated Authorization OAuth2 Strategy for the OAuth2 client
38 39 40 |
# File 'lib/omniauth/strategies/idq.rb', line 38 def @delegated_authorization ||= OAuth2::Strategy::DelegatedAuthorization.new(self) end |
#delegated_authorization_url(params = {}) ⇒ Object
The authorize endpoint URL of the OAuth2 provider we add support for generating a Delegated Authorization URL
32 33 34 35 |
# File 'lib/omniauth/strategies/idq.rb', line 32 def (params = {}) params = (params || {}).merge(redirection_params) connection.build_url([:delegated_authorization_url], params).to_s end |