auth

package
v0.0.0-...-f918e5c Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllowedTenantsFromContext

func GetAllowedTenantsFromContext(ctx context.Context) []string

GetAllowedTenantsFromContext extracts the names of allowed tenants, if any, from the provided context

func NewAuthenticator

func NewAuthenticator(ctx context.Context, logger *slog.Logger, policies io.Reader) (func(http.Handler) http.Handler, error)

func WithAllowedTenants

func WithAllowedTenants(ctx context.Context, tenants []string) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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