[codex] Add opt-in unverified generic OAuth ID token mode - #204
[codex] Add opt-in unverified generic OAuth ID token mode#204salasebas wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
|
Closing without merge after audit. RustAuth intentionally removed decode-only Generic OAuth ID-token profile extraction because unverified Although Better Auth 1.6.23 still contains the legacy decode-only behavior, its If compatibility with a provider that cannot expose trustworthy UserInfo/JWKS is needed later, it should be designed in a separate issue with an explicit threat model rather than treating unverified JWT payloads as authenticated identity. |
Summary
GenericOAuthProfileSource::UnverifiedIdTokenThenUserInfoas an explicit opt-in Generic OAuth profile sourceid_tokenpayload claims without signature verification only in that opt-in mode, requiring usablesubandemailclaims before mappingUserInfopath and the verifiedVerifiedIdToken(...)OIDC path unchangedContext
Better Auth 1.6.9 decodes Generic OAuth
idTokenprofile claims before falling back touserinfo. RustAuth keeps the secure default, but this adds a deliberately named opt-in mode for maintainers who need that upstream-compatible behavior.Closes #178.
Validation
cargo fmt --all --checkcargo clippy --workspace --all-targets --all-features -- -D warningscargo nextest run -p rustauth-plugins --all-features generic_oauthcargo nextest run -p rustauth-plugins --all-features