Documentation
¶
Overview ¶
Package oidc provides a supported-adapter integration wrapper for OIDC auth.
Use NewFromEnv when application bootstrap wants environment-loaded OIDC/JWKS bearer-token middleware and a readiness health checker from one construction path. The wrapper delegates validation behavior to middleware/auth/oidc and keeps configuration loading in the contrib module.
Treat issuer, audience, JWKS URL, and allowed algorithms as production security configuration. Do not use placeholder identity-provider values in deployed services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthChecker ¶
func HealthChecker(cfg Config, client *http.Client) ports.HealthChecker
HealthChecker returns a health checker for OIDC JWKS.
Types ¶
type Config ¶
Config aliases the OIDC middleware configuration.
func LoadConfig ¶
LoadConfig reads OIDC configuration from environment.
type Middleware ¶
type Middleware = oidc.Middleware
Middleware aliases the OIDC middleware.
func NewMiddleware ¶
NewMiddleware creates an OIDC middleware.