Class: AuthJwt::Configuration

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

Overview

Hold custom configurations

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#audObject

Returns the value of attribute aud.



4
5
6
# File 'lib/auth_jwt/configuration.rb', line 4

def aud
  @aud
end

#expObject

Returns the value of attribute exp.



4
5
6
# File 'lib/auth_jwt/configuration.rb', line 4

def exp
  @exp
end

#issObject

Returns the value of attribute iss.



4
5
6
# File 'lib/auth_jwt/configuration.rb', line 4

def iss
  @iss
end

#jwt_sign_keyObject

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_fieldObject

Returns the value of attribute login_field.



4
5
6
# File 'lib/auth_jwt/configuration.rb', line 4

def 
  @login_field
end

#password_fieldObject

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_keyObject

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_keyObject

Returns the value of attribute public_key.



4
5
6
# File 'lib/auth_jwt/configuration.rb', line 4

def public_key
  @public_key
end

#saltObject

Returns the value of attribute salt.



4
5
6
# File 'lib/auth_jwt/configuration.rb', line 4

def salt
  @salt
end

#user_classObject

Returns the value of attribute user_class.



4
5
6
# File 'lib/auth_jwt/configuration.rb', line 4

def user_class
  @user_class
end