Module: Usps::JwtAuth
- Defined in:
- lib/usps/jwt_auth.rb,
lib/usps/jwt_auth/config.rb,
lib/usps/jwt_auth/decode.rb,
lib/usps/jwt_auth/encode.rb,
lib/usps/jwt_auth/concern.rb,
lib/usps/jwt_auth/railtie.rb,
lib/usps/jwt_auth/version.rb,
lib/usps/jwt_auth/incorrect_login.rb
Overview
Unified configuration for handling JWT Authentication
Defined Under Namespace
Modules: Concern Classes: Config, Decode, Encode, IncorrectLogin, Railtie
Constant Summary collapse
- VERSION =
'1.0.0'
Class Method Summary collapse
- .configuration ⇒ Object (also: config)
- .configure {|configuration| ... } ⇒ Object
- .decode ⇒ Object
- .encode ⇒ Object
Class Method Details
.configuration ⇒ Object Also known as: config
11 12 13 |
# File 'lib/usps/jwt_auth.rb', line 11 def configuration @configuration ||= Config.new end |
.configure {|configuration| ... } ⇒ Object
16 17 18 19 20 |
# File 'lib/usps/jwt_auth.rb', line 16 def configure yield(configuration) if block_given? configuration.validate! configuration end |