Class: Himari::Services::OidcUserinfoEndpoint

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

Defined Under Namespace

Classes: Handler

Instance Method Summary collapse

Constructor Details

#initialize(storage:, logger: nil) ⇒ OidcUserinfoEndpoint

Returns a new instance of OidcUserinfoEndpoint.

Parameters:



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

def initialize(storage:, logger: nil)
  @storage = storage
  @logger = logger
end

Instance Method Details

#appObject



15
16
17
# File 'lib/himari/services/oidc_userinfo_endpoint.rb', line 15

def app
  self
end

#call(env) ⇒ Object



19
20
21
# File 'lib/himari/services/oidc_userinfo_endpoint.rb', line 19

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