Module: SimpleTokenAuth::Configuration
- Included in:
- SimpleTokenAuth
- Defined in:
- lib/simple_token_auth/configuration.rb
Defined Under Namespace
Classes: MissingConfiguration
Constant Summary collapse
- @@generate_authentication_token_strategy =
Defaults
-> { SimpleTokenAuth.friendly_token }
- @@compare_token_strategy =
-> (a, b) { SimpleTokenAuth.secure_compare(a, b) }
- @@find_scope_strategy =
MissingConfiguration.new("find_scope_strategy needs to be configured")
- @@after_authenticated_strategy =
MissingConfiguration.new("after_authenticated_strategy needs to be configured")
Instance Method Summary collapse
Instance Method Details
#configure {|_self| ... } ⇒ Object
25 26 27 |
# File 'lib/simple_token_auth/configuration.rb', line 25 def configure yield self if block_given? end |