Class: Configuration
- Inherits:
-
Object
- Object
- Configuration
- Defined in:
- lib/jm81auth/configuration.rb
Instance Attribute Summary collapse
-
#client_secrets ⇒ Object
Returns the value of attribute client_secrets.
-
#expires_seconds ⇒ Object
Returns the value of attribute expires_seconds.
-
#jwt_algorithm ⇒ Object
Returns the value of attribute jwt_algorithm.
-
#jwt_secret ⇒ Object
Returns the value of attribute jwt_secret.
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 |
# File 'lib/jm81auth/configuration.rb', line 4 def initialize @client_secrets = {} @expires_seconds = 30 * 86400 @jwt_algorithm = 'HS512' end |
Instance Attribute Details
#client_secrets ⇒ Object
Returns the value of attribute client_secrets.
2 3 4 |
# File 'lib/jm81auth/configuration.rb', line 2 def client_secrets @client_secrets end |
#expires_seconds ⇒ Object
Returns the value of attribute expires_seconds.
2 3 4 |
# File 'lib/jm81auth/configuration.rb', line 2 def expires_seconds @expires_seconds end |
#jwt_algorithm ⇒ Object
Returns the value of attribute jwt_algorithm.
2 3 4 |
# File 'lib/jm81auth/configuration.rb', line 2 def jwt_algorithm @jwt_algorithm end |
#jwt_secret ⇒ Object
Returns the value of attribute jwt_secret.
2 3 4 |
# File 'lib/jm81auth/configuration.rb', line 2 def jwt_secret @jwt_secret end |