Repository navigation
feat(oauth2): add RFC 9207 iss parameter, Redis refresh token persistence, and RFC 6750 form bearer support - #398
Conversation
…ence, and RFC 6750 form bearer support
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7f6fcf4e79
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "EXPIRE %s %s", | ||
| famKey.c_str(), | ||
| ttlStr.c_str() |
There was a problem hiding this comment.
Preserve the longest expiry when updating the family index
When tokens in the same family have different expiration times, each save unconditionally replaces the family set's TTL with that token's remaining lifetime. Saving a shorter-lived member after a longer-lived one—or completing their asynchronous index updates in that order—therefore expires the index while a refresh token is still valid. revokeTokenFamily() subsequently sees no members and reports completion without revoking that live token. Keep the index until the latest expiration of all indexed members rather than resetting it to the last save's TTL.
Useful? React with 👍 / 👎.
Summary
issparameter): Advertiseauthorization_response_iss_parameter_supported: truein discovery metadata and appendisson all authorize success/error/consent redirects.oauth2:family:<familyId>index tracking, revocation retention, family revocation, and introspection fallback inRedisTokenRepository. UpgradedTokenRepositoryContractTest.ccto round-trip contract.access_tokeninapplication/x-www-form-urlencodedbody forPOST /oauth2/userinfoinOAuth2AuthFilter(GET query token remains rejected). Route registration &openapi.yamlSDK regeneration deferred to a follow-up PR with Go 1.22+.Testing
tests/integration/token/RfcGapAFeaturesTest.cc(3 tests, 18 assertions).