auth

package
v0.0.0-...-ca9b5a7 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserIDHeader        = "NYUM-User-ID"
	AuthorizationHeader = "Authorization"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware struct {
	// contains filtered or unexported fields
}

func NewMiddleware

func NewMiddleware(d *daemon.Daemon) *Middleware

func (*Middleware) AllowAdmin

func (m *Middleware) AllowAdmin(next http.Handler) http.Handler

AllowAdmin middleware ensures that the user is an admin

func (*Middleware) AllowUser

func (m *Middleware) AllowUser(next http.Handler) http.Handler

func (*Middleware) Session

func (m *Middleware) Session(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

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