Skip to content

feat(oauth2): add RFC 9207 iss parameter, Redis refresh token persistence, and RFC 6750 form bearer support - #398

Merged
voidvec merged 1 commit into
fix/security-and-rfc-hardeningfrom
feat/rfc-compliance-gap-a
Dec 2, 2026
Merged

voidvec merged 1 commit into
fix/security-and-rfc-hardeningfrom
feat/rfc-compliance-gap-a

Conversation

@voidvec

@voidvec voidvec commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • RFC 9207 (iss parameter): Advertise authorization_response_iss_parameter_supported: true in discovery metadata and append iss on all authorize success/error/consent redirects.
  • Redis Refresh Token Persistence: Implement full JSON serialization, oauth2:family:<familyId> index tracking, revocation retention, family revocation, and introspection fallback in RedisTokenRepository. Upgraded TokenRepositoryContractTest.cc to round-trip contract.
  • RFC 6750 §2.2 Form Bearer: Support access_token in application/x-www-form-urlencoded body for POST /oauth2/userinfo in OAuth2AuthFilter (GET query token remains rejected). Route registration & openapi.yaml SDK regeneration deferred to a follow-up PR with Go 1.22+.

Testing

  • Added tests/integration/token/RfcGapAFeaturesTest.cc (3 tests, 18 assertions).

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-02T03:22:51.352330Z 7f6fcf4 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +221 to +223
"EXPIRE %s %s",
famKey.c_str(),
ttlStr.c_str()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant