Documentation
¶
Overview ¶
SPDX-License-Identifier: AGPL-3.0-or-later
SPDX-License-Identifier: AGPL-3.0-or-later
SPDX-License-Identifier: AGPL-3.0-or-later
Index ¶
- type Handler
- func (h *Handler) HandleAuthCheck(w http.ResponseWriter, r *http.Request)
- func (h *Handler) HandleGetAuthConfig(w http.ResponseWriter, r *http.Request)
- func (h *Handler) HandleGetCSRFToken(w http.ResponseWriter, r *http.Request)
- func (h *Handler) HandleLogout(w http.ResponseWriter, r *http.Request)
- func (h *Handler) HandleOAuthCallback(w http.ResponseWriter, r *http.Request)
- func (h *Handler) HandleRequestMagicLink(w http.ResponseWriter, r *http.Request)
- func (h *Handler) HandleStartOAuth(w http.ResponseWriter, r *http.Request)
- func (h *Handler) HandleVerifyMagicLink(w http.ResponseWriter, r *http.Request)
- func (h *Handler) HandleVerifyReminderAuthLink(w http.ResponseWriter, r *http.Request)
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 handles authentication API requests
func NewHandler ¶
func NewHandler(authProvider providers.AuthProvider, oauthProvider providers.OAuthAuthProvider, magicLinkService magicLinkService, middleware middleware, baseURL string, oauthEnabled bool, magicLinkEnabled bool) *Handler
NewHandler creates a new auth handler
func (*Handler) HandleAuthCheck ¶
func (h *Handler) HandleAuthCheck(w http.ResponseWriter, r *http.Request)
HandleAuthCheck handles GET /api/v1/auth/check
func (*Handler) HandleGetAuthConfig ¶
func (h *Handler) HandleGetAuthConfig(w http.ResponseWriter, r *http.Request)
HandleGetAuthConfig handles GET /api/v1/auth/config Returns available authentication methods
func (*Handler) HandleGetCSRFToken ¶
func (h *Handler) HandleGetCSRFToken(w http.ResponseWriter, r *http.Request)
HandleGetCSRFToken handles GET /api/v1/csrf
func (*Handler) HandleLogout ¶
func (h *Handler) HandleLogout(w http.ResponseWriter, r *http.Request)
HandleLogout handles GET /api/v1/auth/logout
func (*Handler) HandleOAuthCallback ¶
func (h *Handler) HandleOAuthCallback(w http.ResponseWriter, r *http.Request)
func (*Handler) HandleRequestMagicLink ¶
func (h *Handler) HandleRequestMagicLink(w http.ResponseWriter, r *http.Request)
HandleRequestMagicLink handles POST /api/v1/auth/magic-link/request
func (*Handler) HandleStartOAuth ¶
func (h *Handler) HandleStartOAuth(w http.ResponseWriter, r *http.Request)
HandleStartOAuth handles POST /api/v1/auth/start
func (*Handler) HandleVerifyMagicLink ¶
func (h *Handler) HandleVerifyMagicLink(w http.ResponseWriter, r *http.Request)
HandleVerifyMagicLink handles GET /api/v1/auth/magic-link/verify
func (*Handler) HandleVerifyReminderAuthLink ¶
func (h *Handler) HandleVerifyReminderAuthLink(w http.ResponseWriter, r *http.Request)
HandleVerifyReminderAuthLink handles GET /api/v1/auth/reminder-link/verify This endpoint authenticates a user via a reminder auth token and redirects to the document signature page