authz

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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