Module: SimpleJwtAuth
- Defined in:
- lib/simple_jwt_auth.rb,
lib/simple_jwt_auth/claims.rb,
lib/simple_jwt_auth/decode.rb,
lib/simple_jwt_auth/encode.rb,
lib/simple_jwt_auth/errors.rb,
lib/simple_jwt_auth/secrets.rb,
lib/simple_jwt_auth/version.rb,
lib/simple_jwt_auth/configuration.rb,
lib/simple_jwt_auth/traits/configurable.rb,
lib/simple_jwt_auth/middleware/grape/jwt.rb,
lib/simple_jwt_auth/middleware/faraday/jwt.rb
Defined Under Namespace
Modules: Errors, Middleware, Traits Classes: Claims, Configuration, Decode, Encode, Secrets
Constant Summary collapse
- VERSION =
'0.0.1'
Class Method Summary collapse
-
.configuration ⇒ SimpleJwtAuth::Configuration
Get current configuration.
-
.configure {|configuration| ... } ⇒ Object
Configure the gem.
-
.secrets ⇒ SimpleJwtAuth::Secrets
Get current secrets.
Class Method Details
.configuration ⇒ SimpleJwtAuth::Configuration
Get current configuration
35 36 37 |
# File 'lib/simple_jwt_auth/configuration.rb', line 35 def self.configuration @configuration ||= Configuration.new end |
.configure {|configuration| ... } ⇒ Object
Configure the gem
Any attributes listed in attr_accessor can be configured
49 50 51 |
# File 'lib/simple_jwt_auth/configuration.rb', line 49 def self.configure yield configuration end |
.secrets ⇒ SimpleJwtAuth::Secrets
Get current secrets
48 49 50 |
# File 'lib/simple_jwt_auth/secrets.rb', line 48 def self.secrets @secrets ||= Secrets.new(configuration.secrets_config) end |