Class: OAuth2::Strategy::DelegatedAuthorization
- Inherits:
-
Base
- Object
- Base
- OAuth2::Strategy::DelegatedAuthorization
- Defined in:
- lib/omniauth/strategies/idq.rb
Instance Method Summary collapse
-
#authorize_params(params = {}) ⇒ Object
The required query parameters for the authorize URL is an exact copy of the same method in the AuthCode Strategy.
-
#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.
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
11 12 13 |
# File 'lib/omniauth/strategies/idq.rb', line 11 def (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
19 20 21 |
# File 'lib/omniauth/strategies/idq.rb', line 19 def (params = {}) @client.(.merge(params)) end |