Class: Warden::OAuth2::Configuration
- Inherits:
-
Object
- Object
- Warden::OAuth2::Configuration
- Defined in:
- lib/warden/oauth2.rb
Instance Attribute Summary collapse
-
#client_credentials_model ⇒ Object
Returns the value of attribute client_credentials_model.
-
#refresh_token_model ⇒ Object
Returns the value of attribute refresh_token_model.
-
#resource_owner_password_credentials_model ⇒ Object
Returns the value of attribute resource_owner_password_credentials_model.
-
#token_model ⇒ Object
Returns the value of attribute token_model.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 15 16 17 |
# File 'lib/warden/oauth2.rb', line 12 def initialize self.client_credentials_model = ClientCredentialsApplication if defined?(ClientCredentialsApplication) self.resource_owner_password_credentials_model = ResourceOwnerPasswordCredentialsApplication if defined?(ResourceOwnerPasswordCredentialsApplication) self.refresh_token_model = RefreshTokenApplication if defined?(RefreshTokenApplication) self.token_model = AccessToken if defined?(AccessToken) end |
Instance Attribute Details
#client_credentials_model ⇒ Object
Returns the value of attribute client_credentials_model.
7 8 9 |
# File 'lib/warden/oauth2.rb', line 7 def client_credentials_model @client_credentials_model end |
#refresh_token_model ⇒ Object
Returns the value of attribute refresh_token_model.
7 8 9 |
# File 'lib/warden/oauth2.rb', line 7 def refresh_token_model @refresh_token_model end |
#resource_owner_password_credentials_model ⇒ Object
Returns the value of attribute resource_owner_password_credentials_model.
7 8 9 |
# File 'lib/warden/oauth2.rb', line 7 def resource_owner_password_credentials_model @resource_owner_password_credentials_model end |
#token_model ⇒ Object
Returns the value of attribute token_model.
7 8 9 |
# File 'lib/warden/oauth2.rb', line 7 def token_model @token_model end |