Class: Hanko::Api::PublicNamespace
- Inherits:
-
Object
- Object
- Hanko::Api::PublicNamespace
- 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
-
#flow ⇒ Public::Flow
Access the flow resource for login, registration, and profile flows.
-
#initialize(connection) ⇒ PublicNamespace
constructor
Initialize the public namespace.
-
#sessions ⇒ Public::Sessions
Access the sessions resource for session validation.
-
#well_known ⇒ Public::WellKnown
Access the .well-known resource for JWKS and configuration discovery.
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
#flow ⇒ Public::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 |
#sessions ⇒ Public::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_known ⇒ Public::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 |