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.



9
10
11
12
# File 'lib/warden/oauth2.rb', line 9

def initialize
  self.client_model = ClientApplication if defined?(ClientApplication)
  self.token_model = AccessToken if defined?(AccessToken)
end

Instance Attribute Details

#client_modelObject

Returns the value of attribute client_model.



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

def client_model
  @client_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