auth

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2025 License: AGPL-3.0, AGPL-3.0-or-later Imports: 9 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

func NewHandler

func NewHandler(authService *auth.OauthService, middleware *shared.Middleware, baseURL string) *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) 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) HandleStartOAuth

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

HandleStartOAuth handles POST /api/v1/auth/start

Jump to

Keyboard shortcuts

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