Expand description
JWT helpers: HS256 (shared-secret) and ES256/RS256 (PEM-key, asymmetric) — the asymmetric pair is what any estate OIDC issuer needs (research loop wave 3b prerequisite).
Enums§
- JwtError
- Errors for JWT operations.
Functions§
- build_
auth_ cookie - Build a Set-Cookie header value for an auth token.
- decode_
es256 - Decode and validate an ES256 JWT, returning typed claims.
- decode_
hs256 - Decode and validate an HS256 JWT, returning typed claims.
- decode_
rs256 - Decode and validate an RS256 JWT, returning typed claims.
- encode_
es256 - Encode a claims struct as an ES256 JWT (P-256 ECDSA, PKCS#8 PEM key).
- encode_
hs256 - Encode a claims struct as an HS256 JWT.
- encode_
rs256 - Encode a claims struct as an RS256 JWT (RSA, PKCS#8 PEM key).
- extract_
bearer_ token - Extract a Bearer token from an Authorization header value.