Class: Zas::Authenticators::SequelPasswordAuthenticator::Configuration
- Inherits:
-
Struct
- Object
- Struct
- Zas::Authenticators::SequelPasswordAuthenticator::Configuration
- Defined in:
- lib/zas/authenticators/sequel_password_authenticator.rb
Overview
Public: Configuration for the authenticator
Configuration attributes include:
table_name - The table name to query to authenticate. Defaults to ‘users’ username_field - The name of the field used to store the user identifier, defaults to ‘username’ password_field - The name of the field used to store the encrypted password, ‘defaults to ’crypted_password’ salt_field - The name of the field used to store a salt, defaults to ‘password_salt’
Instance Attribute Summary collapse
-
#password_field ⇒ Object
Returns the value of attribute password_field.
-
#salt_field ⇒ Object
Returns the value of attribute salt_field.
-
#table_name ⇒ Object
Returns the value of attribute table_name.
-
#username_field ⇒ Object
Returns the value of attribute username_field.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(attributes = {}) ⇒ Configuration
Returns a new instance of Configuration.
14 15 16 17 18 |
# File 'lib/zas/authenticators/sequel_password_authenticator.rb', line 14 def initialize(attributes={}) attributes.each do |k, v| self[k] = v end end |
Instance Attribute Details
#password_field ⇒ Object
Returns the value of attribute password_field
13 14 15 |
# File 'lib/zas/authenticators/sequel_password_authenticator.rb', line 13 def password_field @password_field end |
#salt_field ⇒ Object
Returns the value of attribute salt_field
13 14 15 |
# File 'lib/zas/authenticators/sequel_password_authenticator.rb', line 13 def salt_field @salt_field end |
#table_name ⇒ Object
Returns the value of attribute table_name
13 14 15 |
# File 'lib/zas/authenticators/sequel_password_authenticator.rb', line 13 def table_name @table_name end |
#username_field ⇒ Object
Returns the value of attribute username_field
13 14 15 |
# File 'lib/zas/authenticators/sequel_password_authenticator.rb', line 13 def username_field @username_field end |