auth

package
v0.0.0-...-5633597 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func A2ARequestHandler

func A2ARequestHandler(authProvider auth.AuthProvider, agentNns types.NamespacedName) handler

Types

type A2AAuthenticator

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

func NewA2AAuthenticator

func NewA2AAuthenticator(provider auth.AuthProvider) *A2AAuthenticator

func (*A2AAuthenticator) Wrap

func (p *A2AAuthenticator) Wrap(next http.Handler) http.Handler

type NoopAuthorizer

type NoopAuthorizer struct{}

func (*NoopAuthorizer) Check

func (a *NoopAuthorizer) Check(ctx context.Context, principal auth.Principal, verb auth.Verb, resource auth.Resource) error

type SimpleSession

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

func (*SimpleSession) Principal

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

type UnsecureAuthenticator

type UnsecureAuthenticator struct{}

func (*UnsecureAuthenticator) Authenticate

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

func (*UnsecureAuthenticator) UpstreamAuth

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

Jump to

Keyboard shortcuts

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