Class: Himari::Services::JwksEndpoint

Inherits:
Object
  • Object
show all
Defined in:
lib/himari/services/jwks_endpoint.rb

Defined Under Namespace

Classes: Handler

Instance Method Summary collapse

Constructor Details

#initialize(signing_key_provider:) ⇒ JwksEndpoint

Returns a new instance of JwksEndpoint.

Parameters:



5
6
7
# File 'lib/himari/services/jwks_endpoint.rb', line 5

def initialize(signing_key_provider:)
  @signing_key_provider = signing_key_provider
end

Instance Method Details

#appObject



9
10
11
# File 'lib/himari/services/jwks_endpoint.rb', line 9

def app
  self
end

#call(env) ⇒ Object



13
14
15
# File 'lib/himari/services/jwks_endpoint.rb', line 13

def call(env)
  Handler.new(signing_key_provider: @signing_key_provider, env: env).response
end