Documentation
¶
Overview ¶
Package authn verifies bearer tokens for static and external auth modes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func External ¶
func External(ctx context.Context, cfg config.ExternalAuth, resource string) (auth.TokenVerifier, error)
External verifies JWT access tokens against the issuer's discovered JWKS.
func Static ¶
func Static(tokens []config.StaticToken) (auth.TokenVerifier, error)
Static verifies pre-shared tokens configured by their SHA-256.
Types ¶
This section is empty.