Module: JWT::Configuration

Included in:
JWT
Defined in:
lib/jwt/configuration.rb,
lib/jwt/configuration/container.rb,
lib/jwt/configuration/jwk_configuration.rb,
lib/jwt/configuration/decode_configuration.rb

Overview

The Configuration module provides methods to configure JWT settings.

Defined Under Namespace

Classes: Container, DecodeConfiguration, JwkConfiguration

Instance Method Summary collapse

Instance Method Details

#configurationJWT::Configuration::Container

Returns the JWT configuration container.

Returns:



19
20
21
# File 'lib/jwt/configuration.rb', line 19

def configuration
  @configuration ||= ::JWT::Configuration::Container.new
end

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

Configures the JWT settings.

Yields:

  • (config)

    Gives the current configuration to the block.

Yield Parameters:



12
13
14
# File 'lib/jwt/configuration.rb', line 12

def configure
  yield(configuration)
end