Versions in this module Expand all Collapse all v0 v0.1.0 Aug 19, 2026 Changes in this version + func AuthErrorFromContext(ctx context.Context) error + func ClaimsFromContext(ctx context.Context) (jwt.MapClaims, bool) + func IsOperator(ctx context.Context) bool + func Middleware(cfg Config, store *policy.Store, logger *slog.Logger) (func(http.Handler) http.Handler, error) + func RoleFromContext(ctx context.Context) string + func WithAuthError(ctx context.Context, err error) context.Context + func WithClaims(ctx context.Context, claims jwt.MapClaims) context.Context + func WithOperator(ctx context.Context) context.Context + func WithRole(ctx context.Context, role string) context.Context + type Config struct + JWKSURL string + JWTSecret string + OperatorKey string + RoleClaim string