Skip to content

fix(utils): include query-params from base when building uri#123

Merged
aliev merged 1 commit intoaliev:masterfrom
imgurbot12:fix/redirect
Aug 7, 2025
Merged

fix(utils): include query-params from base when building uri#123
aliev merged 1 commit intoaliev:masterfrom
imgurbot12:fix/redirect

Conversation

@imgurbot12
Copy link
Contributor

Hello again!

I've been using v2 for quite some time now and really enjoying it. Our OAuth server implemented with it is working fantastically! However, I ran into a small issue when attempting to integrate with a wordpress site using an older plugin called "OpenID Connect Client".

The plugin uses a redirect-uri with a configured query-parameter that is essential for the plugin:
.../wp-admin/admin-ajax.php?action=openid-connect-authorize. If the action parameter is missing, the redirect just errors with wordpress seemingly unsure what to do with the request, and the login fails.

It turns out aioauth is stripping query-parameters from the configured redirect-uri and just replacing them with the response parameters on response, so this just ensures that the base parameters are included but overwritten by the response ones if required.

After the following changes, the login worked as intended.
Hope this helps, thanks :)

@imgurbot12 imgurbot12 requested a review from aliev as a code owner August 5, 2025 23:44
Copy link
Owner

@aliev aliev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@aliev aliev merged commit 95d1caf into aliev:master Aug 7, 2025
5 checks passed
@imgurbot12 imgurbot12 deleted the fix/redirect branch August 7, 2025 23:44
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.

2 participants