Class: Hanko::Rails::Configuration
- Inherits:
-
Object
- Object
- Hanko::Rails::Configuration
- Defined in:
- lib/hanko/rails/configuration.rb
Overview
Holds configuration options for the Hanko Rails integration.
Instance Attribute Summary collapse
-
#cookie_name ⇒ Object
Returns the value of attribute cookie_name.
-
#exclude_paths ⇒ Array<String>
Request paths that skip token extraction and verification.
-
#jwks_cache_ttl ⇒ Object
Returns the value of attribute jwks_cache_ttl.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
Initializes a new Configuration with default values.
Constructor Details
#initialize ⇒ Configuration
Initializes a new Configuration with default values.
28 29 30 31 32 |
# File 'lib/hanko/rails/configuration.rb', line 28 def initialize @cookie_name = 'hanko' @jwks_cache_ttl = 3600 @exclude_paths = [] end |
Instance Attribute Details
#cookie_name ⇒ Object
Returns the value of attribute cookie_name.
|
|
# File 'lib/hanko/rails/configuration.rb', line 12
|
#exclude_paths ⇒ Array<String>
Request paths that skip token extraction and verification.
23 |
# File 'lib/hanko/rails/configuration.rb', line 23 attr_accessor :cookie_name, :jwks_cache_ttl, :exclude_paths |
#jwks_cache_ttl ⇒ Object
Returns the value of attribute jwks_cache_ttl.
|
|
# File 'lib/hanko/rails/configuration.rb', line 16
|