auth

package
v0.0.0-...-4b2c50b Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnauthenticated = errors.New("unauthenticated: missing or invalid Authorization header")

Functions

This section is empty.

Types

type InsecureAuthenticator

type InsecureAuthenticator struct{}

func (*InsecureAuthenticator) Authenticate

func (a *InsecureAuthenticator) Authenticate(ctx context.Context, reqHeaders http.Header, query url.Values) (auth.Session, error)

func (*InsecureAuthenticator) UpstreamAuth

func (a *InsecureAuthenticator) UpstreamAuth(r *http.Request, session auth.Session, upstreamPrincipal auth.Principal) error

type ProxyAuthenticator

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

func NewProxyAuthenticator

func NewProxyAuthenticator(userIDClaim string) *ProxyAuthenticator

func (*ProxyAuthenticator) Authenticate

func (a *ProxyAuthenticator) Authenticate(ctx context.Context, reqHeaders http.Header, query url.Values) (auth.Session, error)

func (*ProxyAuthenticator) UpstreamAuth

func (a *ProxyAuthenticator) UpstreamAuth(r *http.Request, session auth.Session, upstreamPrincipal auth.Principal) error

type SimpleSession

type SimpleSession struct {
	P auth.Principal
	// contains filtered or unexported fields
}

func (*SimpleSession) Principal

func (s *SimpleSession) Principal() auth.Principal

Jump to

Keyboard shortcuts

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