Class: OAuth2::Strategy::Implicit
- Defined in:
- lib/oauth2/strategy/implicit.rb
Overview
The Implicit Strategy
Instance Method Summary collapse
- 
  
    
      #authorize_params(params = {})  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    The required query parameters for the authorize URL. 
- 
  
    
      #authorize_url(params = {})  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    The authorization URL endpoint of the provider. 
- 
  
    
      #get_token  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Not used for this strategy. 
Methods inherited from Base
Constructor Details
This class inherits a constructor from OAuth2::Strategy::Base
Instance Method Details
#authorize_params(params = {}) ⇒ Object
The required query parameters for the authorize URL
| 12 13 14 | # File 'lib/oauth2/strategy/implicit.rb', line 12 def (params = {}) params.merge("response_type" => "token", "client_id" => @client.id) end | 
#authorize_url(params = {}) ⇒ Object
The authorization URL endpoint of the provider
| 19 20 21 22 | # File 'lib/oauth2/strategy/implicit.rb', line 19 def (params = {}) assert_valid_params(params) @client.(.merge(params)) end | 
#get_token ⇒ Object
Not used for this strategy
| 27 28 29 | # File 'lib/oauth2/strategy/implicit.rb', line 27 def get_token(*) raise(NotImplementedError, "The token is accessed differently in this strategy") end |