Class: AuthJwt::Configuration
- Inherits:
-
Object
- Object
- AuthJwt::Configuration
- Defined in:
- lib/auth_jwt/configuration.rb
Overview
Hold custom configurations
Instance Attribute Summary collapse
-
#aud ⇒ Object
Returns the value of attribute aud.
-
#exp ⇒ Object
Returns the value of attribute exp.
-
#iss ⇒ Object
Returns the value of attribute iss.
-
#jwt_sign_key ⇒ Object
Returns the value of attribute jwt_sign_key.
-
#login_field ⇒ Object
Returns the value of attribute login_field.
-
#password_field ⇒ Object
Returns the value of attribute password_field.
-
#private_key ⇒ Object
Returns the value of attribute private_key.
-
#public_key ⇒ Object
Returns the value of attribute public_key.
-
#salt ⇒ Object
Returns the value of attribute salt.
-
#user_class ⇒ Object
Returns the value of attribute user_class.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
Set the default settings.
Constructor Details
#initialize ⇒ Configuration
Set the default settings
7 8 9 10 11 12 |
# File 'lib/auth_jwt/configuration.rb', line 7 def initialize @user_class = 'User' @login_field = 'login' @password_field = 'password' @salt = SecureRandom.hex(16) end |
Instance Attribute Details
#aud ⇒ Object
Returns the value of attribute aud.
4 5 6 |
# File 'lib/auth_jwt/configuration.rb', line 4 def aud @aud end |
#exp ⇒ Object
Returns the value of attribute exp.
4 5 6 |
# File 'lib/auth_jwt/configuration.rb', line 4 def exp @exp end |
#iss ⇒ Object
Returns the value of attribute iss.
4 5 6 |
# File 'lib/auth_jwt/configuration.rb', line 4 def iss @iss end |
#jwt_sign_key ⇒ Object
Returns the value of attribute jwt_sign_key.
4 5 6 |
# File 'lib/auth_jwt/configuration.rb', line 4 def jwt_sign_key @jwt_sign_key end |
#login_field ⇒ Object
Returns the value of attribute login_field.
4 5 6 |
# File 'lib/auth_jwt/configuration.rb', line 4 def login_field @login_field end |
#password_field ⇒ Object
Returns the value of attribute password_field.
4 5 6 |
# File 'lib/auth_jwt/configuration.rb', line 4 def password_field @password_field end |
#private_key ⇒ Object
Returns the value of attribute private_key.
4 5 6 |
# File 'lib/auth_jwt/configuration.rb', line 4 def private_key @private_key end |
#public_key ⇒ Object
Returns the value of attribute public_key.
4 5 6 |
# File 'lib/auth_jwt/configuration.rb', line 4 def public_key @public_key end |
#salt ⇒ Object
Returns the value of attribute salt.
4 5 6 |
# File 'lib/auth_jwt/configuration.rb', line 4 def salt @salt end |
#user_class ⇒ Object
Returns the value of attribute user_class.
4 5 6 |
# File 'lib/auth_jwt/configuration.rb', line 4 def user_class @user_class end |