Class: OAuth2::Strategy::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/oauth2/strategy/base.rb

Direct Known Subclasses

Assertion, AuthCode, ClientCredentials, Implicit, Password

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Base

Returns 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

#client_paramsHash

The OAuth client_id and client_secret

Returns:

  • (Hash)


11
12
13
# File 'lib/oauth2/strategy/base.rb', line 11

def client_params
  {'client_id' => @client.id, 'client_secret' => @client.secret}
end