Module: JWTKeeper
- Defined in:
- lib/jwt_keeper/version.rb,
lib/jwt_keeper.rb,
lib/jwt_keeper/token.rb,
lib/jwt_keeper/engine.rb,
lib/jwt_keeper/datastore.rb,
lib/jwt_keeper/controller.rb,
lib/jwt_keeper/exceptions.rb,
lib/jwt_keeper/configuration.rb
Overview
Gem Version
Defined Under Namespace
Modules: Controller, Datastore Classes: BadIssuerError, Configuration, EarlyTokenError, Engine, ExpiredTokenError, InvalidTokenError, LousyAudienceError, NotAuthenticatedError, RevokedTokenError, Token
Constant Summary collapse
- VERSION =
'6.1.2'.freeze
Class Attribute Summary collapse
-
.configuration ⇒ Object
readonly
Returns the value of attribute configuration.
-
.datastore ⇒ Object
readonly
Returns the value of attribute datastore.
Class Method Summary collapse
-
.configure(new_configuration = Configuration.new) {|new_configuration| ... } ⇒ Configuration
Creates/sets a new configuration for the gem, yield a configuration object.
Class Attribute Details
.configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
14 15 16 |
# File 'lib/jwt_keeper.rb', line 14 def configuration @configuration end |
.datastore ⇒ Object (readonly)
Returns the value of attribute datastore.
14 15 16 |
# File 'lib/jwt_keeper.rb', line 14 def datastore @datastore end |
Class Method Details
.configure(new_configuration = Configuration.new) {|new_configuration| ... } ⇒ Configuration
Creates/sets a new configuration for the gem, yield a configuration object
20 21 22 23 24 |
# File 'lib/jwt_keeper.rb', line 20 def self.configure(new_configuration = Configuration.new) yield(new_configuration) if block_given? @configuration = new_configuration.freeze end |