Class: Himari::Services::OidcProviderMetadataEndpoint

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

Defined Under Namespace

Classes: Handler

Instance Method Summary collapse

Constructor Details

#initialize(signing_key_provider:, issuer:) ⇒ OidcProviderMetadataEndpoint

Returns a new instance of OidcProviderMetadataEndpoint.

Parameters:



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

def initialize(signing_key_provider:, issuer:)
  @signing_key_provider = signing_key_provider
  @issuer = issuer
end

Instance Method Details

#appObject



10
11
12
# File 'lib/himari/services/oidc_provider_metadata_endpoint.rb', line 10

def app
  self
end

#call(env) ⇒ Object



14
15
16
# File 'lib/himari/services/oidc_provider_metadata_endpoint.rb', line 14

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