auth

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: MIT Imports: 15 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) (*auth, error)

NewAuthenticatorInterceptor creates an 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
}

Jump to

Keyboard shortcuts

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