package
1.21.0-rc1
Repository: https://github.com/hashicorp/consul.git
Documentation: pkg.go.dev

# Packages

package oidcauthtest exposes tools to assist in writing unit tests of OIDC and JWT authentication workflows.

# Functions

New creates an authenticator suitable for use with either an OIDC authorization code workflow or a bare JWT workflow depending upon the value of the config Type.

# Constants

TypeJWT is the config type to specify if simple JWT decoding (via static keys, JWKS, and OIDC discovery) is desired.
TypeOIDC is the config type to specify if the OIDC authorization code workflow is desired.

# Structs

Authenticator allows for extracting a set of claims from either an OIDC authorization code exchange or a bare JWT.
Claims represents a set of claims or assertions computed about a given authentication exchange.
Config is the collection of all settings that pertain to doing OIDC-based authentication and direct JWT-based authentication processes.
ProviderLoginFailedError is an error type sometimes returned from ClaimsFromAuthCode().
TokenVerificationFailedError is an error type sometimes returned from ClaimsFromAuthCode().