Documentation
¶
Index ¶
- type Handler
- func (h *Handler) Logout(c *echo.Context) error
- func (h *Handler) Me(c *echo.Context) error
- func (h *Handler) OAuthAuthorize(c *echo.Context) error
- func (h *Handler) OAuthCallback(c *echo.Context) error
- func (h *Handler) RegisterRoutes(e *echo.Echo)
- func (h *Handler) SendOTP(c *echo.Context) error
- func (h *Handler) VerifyOTP(c *echo.Context) error
- type SessionCookieConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler serves auth-related HTTP endpoints.
func NewHandler ¶
func NewHandler( log logger.Logger, tracer observability.Tracer, responder httpresponse.Responder, otp authotp.OTPAuthenticator, oauth authoauth.OAuthAuthenticator, session authsession.SessionManager, cookie SessionCookieConfig, sessionMW *sessionmw.SessionMiddleware, ) *Handler
func (*Handler) Me ¶
Me returns the current user; requires session middleware (enforced by the route group).
func (*Handler) RegisterRoutes ¶
Click to show internal directories.
Click to hide internal directories.