Class: OAuth2::Strategy::Base
- Inherits:
-
Object
- Object
- OAuth2::Strategy::Base
- Defined in:
- lib/oauth2/strategy/base.rb
Instance Method Summary (collapse)
- - (Object) authorize_params(params = {})
- - (Object) client_params
-
- (Base) initialize(client)
constructor
A new instance of Base.
Constructor Details
- (Base) initialize(client)
A new instance of Base
4 5 6 |
# File 'lib/oauth2/strategy/base.rb', line 4 def initialize(client) @client = client end |
Instance Method Details
- (Object) authorize_params(params = {})
8 9 10 |
# File 'lib/oauth2/strategy/base.rb', line 8 def (params={}) client_params.merge(params) end |
- (Object) client_params
12 13 14 15 |
# File 'lib/oauth2/strategy/base.rb', line 12 def client_params { 'client_id' => @client.id, 'client_secret' => @client.secret } end |