Hi!
I am experiencing problems with redirection after login at certain circumstances
I have following setup:
- Wordpress website with Patreon Plugin (Patreon login enabled).
- Discourse website, configured to authorize through Wordpress via SSO.
So, when user trying to authorize on Discourse, he is redirected to Wordpress website, enters his username/password and after successful authorization he is redirected back to Discourse.
But, as mentioned above, we also have Patreon Login configured (for Wordpress).
So, when user is redirected from Discourse to Wordpress, he can click “Login with Patreon” button and authorize there. The problem is that user is not properly redirected back to Discourse after that.
Here I have recorded a video showing the problem -
Note-1: When user authorizing directly from Wordpress website by clicking “Login with Patreon” button, then redirecting works fine.
Note-2: When user authorizing from Discourse without clicking “Login with Patreon” button, then redirecting also works fine.
One of Discourse developers noted:
What I think is causing the problem is that the WordPress Patreon plugin is stripping the
sso
andsig
query parameters that are sent with the Patreon login request.
Any help is appreciated!