authn

package
v2.13.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetadataAuthKey  = "auth"
	MetadataAuthSkip = "skip"
)

Variables

View Source
var UnauthorizedPathPrefixes = map[string]struct{}{
	"/gui": {},
}

UnauthorizedPathPrefixes is another way to add path prefixes as unauthorized endpoint. Prefer MetadataAuthKey, use UnauthorizedPathPrefixes if needed.

Functions

func LocalhostAuthenticator

func LocalhostAuthenticator(request *restful.Request, response *restful.Response, chain *restful.FilterChain)

func SkipAuth

func SkipAuth(request *restful.Request) bool

Types

type Authenticator

type Authenticator = restful.FilterFunction

Jump to

Keyboard shortcuts

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