@grow-codes/oidc 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/AGENTS.md CHANGED
@@ -7,8 +7,10 @@ This file ships inside every package (npm, Go module, wheel, jar `META-INF/grow/
7
7
  ## What it checks
8
8
 
9
9
  - Signature with keys from `GROW_AUTH_JWKS_URL`, else OIDC discovery
10
- (`<issuer>/.well-known/openid-configuration` → `jwks_uri`). Algorithms: **RS256, ES256, EdDSA**
11
- only (`none`/HMAC always rejected; RSA keys ≥ 2048 bit).
10
+ (`<issuer>/.well-known/openid-configuration` → `jwks_uri`). Algorithms: **RS256/384/512,
11
+ PS256/384/512, ES256/384/512, EdDSA** (Rust: no ES512), each bound to a matching JWKS key: RS*/PS*
12
+ need RSA ≥ 2048 bit, ES256/ES384/ES512 need EC P-256/P-384/P-521, EdDSA needs Ed25519, and a
13
+ key's `alg` (when set) must equal the token's. `none`/HMAC are always rejected.
12
14
  - `iss` == issuer (exact), `aud` == or contains audience, `exp` required, `nbf`, `sub` required;
13
15
  clock skew **60 s**.
14
16
  - JWKS cache 10 min; a token with an unknown `kid` triggers one refetch (key rotation), at most once