Class: Himari::Aws::SecretsmanagerSigningKeyProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/himari/aws/secretsmanager_signing_key_provider.rb

Defined Under Namespace

Classes: Provider

Instance Method Summary collapse

Constructor Details

#initialize(app, kwargs = {}) ⇒ SecretsmanagerSigningKeyProvider

Returns a new instance of SecretsmanagerSigningKeyProvider.



8
9
10
11
# File 'lib/himari/aws/secretsmanager_signing_key_provider.rb', line 8

def initialize(app, kwargs = {})
  @app = app
  @inner = Provider.new(**kwargs)
end

Instance Method Details

#call(env) ⇒ Object



13
14
15
16
17
# File 'lib/himari/aws/secretsmanager_signing_key_provider.rb', line 13

def call(env)
  env[Himari::Middlewares::SigningKey::RACK_KEY] ||= []
  env[Himari::Middlewares::SigningKey::RACK_KEY] += [@inner]
  @app.call(env)
end