Class: ClientAuthenticator::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/client_authenticator/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



4
5
6
7
8
9
10
11
# File 'lib/client_authenticator/configuration.rb', line 4

def initialize()
  @table_name = 'whitelisted_clients'
  @client_id_field = 'client_id'
  @password_field = 'pass_key'
  @cache_expiry_duration = 12.hours
  @client_id_header = 'client-id'
  @pass_key_header = 'pass-key'
end

Instance Attribute Details

#cache_expiry_durationObject

Returns the value of attribute cache_expiry_duration.



13
14
15
# File 'lib/client_authenticator/configuration.rb', line 13

def cache_expiry_duration
  @cache_expiry_duration
end

#client_id_fieldObject

Returns the value of attribute client_id_field.



13
14
15
# File 'lib/client_authenticator/configuration.rb', line 13

def client_id_field
  @client_id_field
end

#client_id_headerObject

Returns the value of attribute client_id_header.



13
14
15
# File 'lib/client_authenticator/configuration.rb', line 13

def client_id_header
  @client_id_header
end

#pass_key_headerObject

Returns the value of attribute pass_key_header.



13
14
15
# File 'lib/client_authenticator/configuration.rb', line 13

def pass_key_header
  @pass_key_header
end

#password_fieldObject

Returns the value of attribute password_field.



13
14
15
# File 'lib/client_authenticator/configuration.rb', line 13

def password_field
  @password_field
end

#table_nameObject

Returns the value of attribute table_name.



13
14
15
# File 'lib/client_authenticator/configuration.rb', line 13

def table_name
  @table_name
end