Documentation
¶
Overview ¶
Package profile holds the demo example for an authenticated self-service area backed by the given GORM stores: cookie-session password login with an optional TOTP second factor and recovery codes, plus password, email, and two-factor management.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(log *slog.Logger, users *user.Service, pw *password.Service, sessions *session.Service, patStore *patdb.Store, mfaSvc mfa.Services, rnd *web.Renderer) http.Handler
New demonstrates an authenticated self-service area backed by the given GORM stores: cookie-session password login with an optional TOTP second factor and recovery codes, plus password, email, and two-factor management.
func Section ¶
func Section(log *slog.Logger, users *user.Service, pw *password.Service, sessions *session.Service, pats *patdb.Store, mfaSvc mfa.Services, rnd *web.Renderer) examples.Section
Section describes the profile self-service example for the demo index and mounts it on the router. Self-service needs the identity and password services, the session registry (list/revoke from the profile page), and the PAT store its token service runs on.
Types ¶
This section is empty.