auth

package
v1.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2025 License: AGPL-3.0, AGPL-3.0-or-later Imports: 12 Imported by: 0

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

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(authService *auth.OauthService, magicLinkService *services.MagicLinkService, middleware *shared.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 added in v1.2.1

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 (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 (h *Handler) HandleVerifyMagicLink(w http.ResponseWriter, r *http.Request)

HandleVerifyMagicLink handles GET /api/v1/auth/magic-link/verify

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL