Skip to content

Fix OAuth refresh resource binding and expired-token challenges - #7

Merged
Jenik5 merged 1 commit into
mainfrom
codex/fix-oauth-refresh
Oct 6, 2026
Merged

Jenik5 merged 1 commit into
mainfrom
codex/fix-oauth-refresh

Conversation

@Jenik5

@Jenik5 Jenik5 commented Oct 6, 2026 •

Copy link
Copy Markdown
Owner

An expired access token in 2026.10.6.1 receives HTTP 401 without error="invalid_token", and refreshing without a repeated resource is rejected with invalid_target. Accept an omitted indicator only for renewal of a valid, client-bound grant whose stored resource matches the unchanged connector origin; add the standard invalid-token challenge while preserving initial discovery. Explicit resource mismatches and refresh attempts after an origin change stay rejected.

Add bounded Boolean refresh diagnostics without logging credentials or hashes. Token lifetime, rotation/replay revocation, policy permissions and session identity remain unchanged.

Validation: 100 Python tests, 5 JavaScript tests, package and JavaScript syntax checks passed locally. GitHub Validate passed on the reviewed revision. A timed HTTP test renews four times over 40 simulated minutes and keeps reading selected states in the same MCP session; security tests cover client/resource binding, restoration, expiry, replay and log privacy.

Related to #6. The rejected refresh without a resource and the incomplete challenge are reproduced server behavior, but the actual reported Grok failure still requires the reporter's logs or a live retest. The troubleshooting guide documents safe capture instructions and distinguishes token errors, HA failed-login/IP-ban handling and session recovery. This change does not close #6 as resolved. No live HA update or new release was performed.

@Jenik5
Jenik5 marked this pull request as ready for review October 6, 2026 16:20
@Jenik5
Jenik5 merged commit 553e5ac into main Oct 6, 2026
8 checks passed
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.

Grok loses connection after ~10 minutes (token refresh fails)

1 participant