auth

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: AGPL-3.0, AGPL-3.0-or-later Imports: 11 Imported by: 0

Documentation

Overview

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 using unified AuthProvider

func NewHandler

func NewHandler(authProvider providers.AuthProvider, middleware middleware, baseURL string) *Handler

NewHandler creates a new auth handler with unified AuthProvider

func (*Handler) HandleAuthCheck

func (h *Handler) HandleAuthCheck(w http.ResponseWriter, r *http.Request)

HandleAuthCheck handles GET /api/v1/auth/check

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) HandleOIDCCallback added in v1.3.0

func (h *Handler) HandleOIDCCallback(w http.ResponseWriter, r *http.Request)

HandleOIDCCallback handles GET /api/v1/auth/callback

func (h *Handler) HandleRequestMagicLink(w http.ResponseWriter, r *http.Request)

HandleRequestMagicLink handles POST /api/v1/auth/magic-link/request

func (*Handler) HandleStartOIDC added in v1.3.0

func (h *Handler) HandleStartOIDC(w http.ResponseWriter, r *http.Request)

HandleStartOIDC 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

Jump to

Keyboard shortcuts

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