auth

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthenticatorInterceptor added in v0.1.0

func NewAuthenticatorInterceptor(c Config) (*opa, error)

NewAuthenticatorInterceptor creates an OPA authenticator

func NewAuthorizeInterceptor added in v0.1.0

func NewAuthorizeInterceptor(log *slog.Logger, repo *repository.Store) *authorizeInterceptor

Types

type Config

type Config struct {
	Log            *slog.Logger
	CertStore      certs.CertStore
	CertCacheTime  *time.Duration
	TokenStore     token.TokenStore
	AllowedIssuers []string
	Repo           *repository.Store
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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