Skip to content

Show why an OAuth consent request was rejected - #7

Merged
maxffarrell merged 1 commit into
mainfrom
fix/consent-error-reason
Nov 6, 2026
Merged

maxffarrell merged 1 commit into
mainfrom
fix/consent-error-reason

Conversation

@maxffarrell

Copy link
Copy Markdown
Owner

The consent page turned every AuthorizationError into the generic Connection request could not be verified, hiding the library's own reason and logging nothing. That made a real-world failure impossible to diagnose.

Now the page shows the library's fixed, non-sensitive description (escaped; only a signed-in admin sees this page) and logs the code + description. The OAuth smoke test asserts the reason is shown for a consent without the browser-binding cookie.

Tested: full production-worker smoke suite incl. OAuth.

🤖 Generated with Claude Code

The consent page replaced every AuthorizationError with a generic 'could not be verified',
hiding the library's specific, non-sensitive reason (e.g. authorization not started in this
browser, expired or already used, unknown client, redirect mismatch) and logging nothing, so
real-world failures could not be diagnosed. Show the reason to the signed-in admin and log it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@maxffarrell
maxffarrell merged commit 43d02ef into main Nov 6, 2026
3 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.

1 participant