Class: Hanko::Api::PublicNamespace

Inherits:
Object
  • Object
show all
Defined in:
lib/hanko/api/public.rb

Overview

Entry point for the Hanko Public API, providing access to public sub-resources.

Instance Method Summary collapse

Constructor Details

#initialize(connection) ⇒ PublicNamespace

Initialize the public namespace.

Parameters:



19
20
21
# File 'lib/hanko/api/public.rb', line 19

def initialize(connection)
  @connection = connection
end

Instance Method Details

#flow ⇒ Public::Flow

Access the flow resource for login, registration, and profile flows.

Returns:



40
41
42
# File 'lib/hanko/api/public.rb', line 40

def flow
  Public::Flow.new(@connection)
end

#sessions ⇒ Public::Sessions

Access the sessions resource for session validation.

Returns:



26
27
28
# File 'lib/hanko/api/public.rb', line 26

def sessions
  Public::Sessions.new(@connection)
end

#well_known ⇒ Public::WellKnown

Access the .well-known resource for JWKS and configuration discovery.

Returns:



33
34
35
# File 'lib/hanko/api/public.rb', line 33

def well_known
  Public::WellKnown.new(@connection)
end