Class: ClientAuthenticator::Configuration
- Inherits:
-
Object
- Object
- ClientAuthenticator::Configuration
- Defined in:
- lib/client_authenticator/configuration.rb
Instance Attribute Summary collapse
-
#cache_expiry_duration ⇒ Object
Returns the value of attribute cache_expiry_duration.
-
#client_id_field ⇒ Object
Returns the value of attribute client_id_field.
-
#client_id_header ⇒ Object
Returns the value of attribute client_id_header.
-
#pass_key_header ⇒ Object
Returns the value of attribute pass_key_header.
-
#password_field ⇒ Object
Returns the value of attribute password_field.
-
#table_name ⇒ Object
Returns the value of attribute table_name.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_duration ⇒ Object
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_field ⇒ Object
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_header ⇒ Object
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_header ⇒ Object
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_field ⇒ Object
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_name ⇒ Object
Returns the value of attribute table_name.
13 14 15 |
# File 'lib/client_authenticator/configuration.rb', line 13 def table_name @table_name end |