composer

package
v1.25.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenFunc

type TokenFunc func(token string, scopes []string) (*models.Principal, error)

func New

func New(config config.Authentication,
	apikey apiKeyValidator, oidc oidcValidator,
) TokenFunc

New provides an OpenAPI compatible token validation function that validates the token either as OIDC or as an APIKey token depending on which is configured. If both are configured, the scheme is figured out at runtime.

Jump to

Keyboard shortcuts

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