Documentation
¶
Overview ¶
Package auth bridges OIDC (dex) bearers to a typed Identity passed through req.Context. V0.1 implements the Verifier interface as a JWKS-fetching JWT validator ; dev mode bypasses the layer entirely via Server.Auth=nil.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrInvalidToken = errors.New("auth: invalid token")
ErrInvalidToken is the standard error for a malformed / expired / unverifiable token. Handlers translate this to 401.
Functions ¶
Types ¶
type Identity ¶
Identity is the request-scoped principal we extract from a verified OIDC token. Subject is the dex subject claim (sub). Groups carry the operator's group memberships ; we map those to project ACL.
func IdentityFrom ¶
IdentityFrom retrieves the identity attached by WithIdentity. When no identity is present, returns the zero Identity + false.
type StaticVerifier ¶
StaticVerifier is a test/dev verifier that accepts a fixed token and returns a fixed identity. Useful for local development without dex configured.