Skip to content

Conversation

@abraunegg
Copy link
Owner

Fix an issue where OAuth authorisation codes containing non-alphanumeric characters were truncated or incorrectly transmitted during token redemption.

The client now captures the full code query parameter from the redirect URI and ensures it is correctly form-encoded when posting to the token endpoint. Authorization codes are treated as opaque values and relayed exactly as returned by Microsoft, preventing AADSTS70000 errors caused by client-side parsing assumptions.

…g token redemption

Fix an issue where OAuth authorisation codes containing non-alphanumeric
characters were truncated or incorrectly transmitted during token redemption.

The client now captures the full `code` query parameter from the redirect URI
and ensures it is correctly form-encoded when posting to the token endpoint.
Authorization codes are treated as opaque values and relayed exactly as
returned by Microsoft, preventing AADSTS70000 errors caused by client-side
parsing assumptions.
@abraunegg abraunegg added this to the v2.5.10 milestone Jan 28, 2026
@abraunegg abraunegg linked an issue Jan 28, 2026 that may be closed by this pull request
* Update PR by decoding string before passing string in to be encoded to be compatible with the application/x-www-form-urlencoded requirement
@abraunegg abraunegg merged commit a63f7e5 into master Jan 28, 2026
10 checks passed
@abraunegg abraunegg deleted the fix-issue-3622 branch January 28, 2026 10:18
@abraunegg
Copy link
Owner Author

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Repository owner locked and limited conversation to collaborators Feb 5, 2026
@abraunegg abraunegg changed the title Fix Bug #3622:Fix OAuth authorisation code parsing and encoding during token redemption Fix Bug #3622: Fix OAuth authorisation code parsing and encoding during token redemption Feb 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: oauth2 codes can contain other characters

1 participant