authz

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrMissingLogoutRedirectURI is returned when the logout redirect uri is missing because it was not explicitly
	// configured or the OIDC Discovery did not return it.
	ErrMissingLogoutRedirectURI = errors.New("missing logout redirect uri")
)

Functions

This section is empty.

Types

type Handler

type Handler interface {
	// Process a CheckRequest and populate a CheckResponse.
	Process(ctx context.Context, req *envoy.CheckRequest, resp *envoy.CheckResponse) error
}

Handler is an interface for handling authorization requests.

func NewMockHandler

func NewMockHandler(cfg *mockv1.MockConfig) Handler

NewMockHandler creates a new Mock implementation of the Handler interface.

func NewOIDCHandler

func NewOIDCHandler(cfg *oidcv1.OIDCConfig, tlsPool internal.TLSConfigPool, jwks oidc.JWKSProvider,
	sessions oidc.SessionStoreFactory, clock oidc.Clock, sessionGen oidc.SessionGenerator) (Handler, error)

NewOIDCHandler creates a new OIDC implementation of the Handler interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳