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
Overview
Unified configuration for handling JWT Authentication
Defined Under Namespace
Modules: Concern Classes: Config, Decode, Encode, Railtie
Constant Summary collapse
- ALGORITHM =
'RS512'- VERSION =
'0.0.12'
Class Method Summary collapse
- .configuration ⇒ Object
- .configure {|configuration| ... } ⇒ Object
- .decode ⇒ Object
- .encode ⇒ Object
Class Method Details
.configuration ⇒ Object
14 15 16 |
# File 'lib/usps/jwt_auth.rb', line 14 def configuration @configuration ||= Config.new end |
.configure {|configuration| ... } ⇒ Object
18 19 20 21 |
# File 'lib/usps/jwt_auth.rb', line 18 def configure yield(configuration) if block_given? configuration end |