Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenFunc ¶
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.
Click to show internal directories.
Click to hide internal directories.