auth

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadAuthSchemes

func LoadAuthSchemes(cfg map[string]config.AuthScheme) (map[string]AuthScheme, error)

LoadAuthSchemes takes the 'proxy.auth' configuration option and returns a map auth name => auth implementation of a specific type.

Types

type AuthScheme

type AuthScheme interface {
	// Authorized returns whether request satisfies the authorization scheme.
	Authorized(request *http.Request, response http.ResponseWriter) bool
}

AuthScheme defines an authentication scheme. See - docs/feature/authorization.md - docs/ref/proxy.auth.md

Jump to

Keyboard shortcuts

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