Class: Warden::OAuth2::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_modelObject

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_modelObject

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_modelObject

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_modelObject

Returns the value of attribute token_model.



7
8
9
# File 'lib/warden/oauth2.rb', line 7

def token_model
  @token_model
end