Repository navigation
Forward provider errors from OAuth2 redirect to the client - #2
Merged
Merged
Conversation
When a user cancels OpenID or permission consent, the provider calls the redirect endpoint with error=access_denied and state but no code. The handler required code, so it returned a StatusBadRequest fault to the browser and never redirected to the client listener, leaving MATLAB waiting until timeout. Now a callback with a valid state and either code or error is forwarded to the client (query preserved), and the page shows a cancellation message. Missing/invalid state still returns a fault, so redirect target validation is unchanged. - Add localized cancellation message (en-US, fr-FR) and regenerate catalog - Document error/error_description params; code no longer required - Add redirect tests for cancelled consent and invalid inputs - Handle error/error_description in the MATLAB example Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
mw-gregs
approved these changes
Nov 11, 2026
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.
When a user cancels OpenID or permission consent, the provider calls the redirect endpoint with error=access_denied and state but no code. The handler required code, so it returned a StatusBadRequest fault to the browser and never redirected to the client listener, leaving MATLAB waiting until timeout.
Now a callback with a valid state and either code or error is forwarded to the client (query preserved), and the page shows a cancellation message. Missing/invalid state still returns a fault, so redirect target validation is unchanged.