fix: handle GitHub OAuth denial with friendly retry screen - #344
Open
Victoria-Devo wants to merge 2 commits into
Open
Victoria-Devo wants to merge 2 commits into
Victoria-Devo wants to merge 2 commits into
Conversation
|
@Victoria-Devo Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR replaces the raw OAuth error flash shown when a user denies GitHub access with a friendly cancellation screen, adds a clear "Connect GitHub" retry path on the dashboard, and ensures the callback never leaks the full GitHub error payload.
Related Issue
Changes
🔐 OAuth Callback Handling
[MODIFY]
app/github/routes.pyaccess_deniedfrom the GitHub callback as a user cancellation rather than an error.errors/oauth_denied.htmlscreen instead of surfacing the raw error string.[MODIFY]
app/services/github.pyaccess_deniedfrom genuine OAuth failures when processing the token exchange.🖥️ Templates
[ADD]
app/templates/errors/oauth_denied.html[MODIFY]
app/templates/github/index.html⚙️ Frontend
app/static/js/github.jsVerification Results
access_deniedis handled as a user cancellation, not an erroraccess_deniedand route to the cancellation screengithub/index.htmland wired ingithub.jsCloses #58