auth

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

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 requests for the assertoor web UI.

func NewAuthHandler

func NewAuthHandler(tokenKey, userHeader string) *Handler

NewAuthHandler creates a new authentication handler.

func (*Handler) CheckAuthToken

func (h *Handler) CheckAuthToken(tokenStr string) *jwt.Token

func (*Handler) GetLogin

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

GetLogin redirects to the index page.

func (*Handler) GetToken

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

GetToken handles the authentication request.

Jump to

Keyboard shortcuts

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