Module: Rails::Vault::JWT

Extended by:
Forwardable
Defined in:
lib/rails/vault/jwt.rb,
lib/rails/vault/jwt/config.rb,
lib/rails/vault/jwt/decoder.rb,
lib/rails/vault/jwt/version.rb,
lib/rails/vault/jwt/key_provider.rb,
lib/rails/vault/jwt/concerns/auth_required.rb,
lib/rails/vault/jwt/token_provider/role_id.rb,
lib/rails/vault/jwt/token_provider/base_provider.rb

Defined Under Namespace

Modules: Concerns, Decoder, TokenProvider Classes: Config, Error, InvalidIssuer, KeyProvider

Constant Summary collapse

VERSION =
'0.2.1'

Class Method Summary collapse

Class Method Details

.configObject



27
28
29
# File 'lib/rails/vault/jwt.rb', line 27

def config
  @config || configure
end

.configure {|@config| ... } ⇒ Object

Yields:



21
22
23
24
25
# File 'lib/rails/vault/jwt.rb', line 21

def configure
  @config = Config.new
  yield(@config) if block_given?
  @config
end