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.



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

def initialize(connection)
  @connection = connection
end

Instance Method Details

#flowPublic::Flow

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



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

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

#sessionsPublic::Sessions

Access the sessions resource for session validation.



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

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

#well_knownPublic::WellKnown

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



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

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