Users are discussing implementing SSO between a custom application, WordPress, and Discourse using Auth0. pdias-cci describes their authentication flow and seeks guidance on how to replicate WordPress’s SSO method in Discourse using the Auth0 plugin. skappala asks if they can use a GET request to receive user details as JSON instead of full redirection. blake recommends following the official OAuth2-Basic plugin guide for Auth0 integration, which supports returning users to their original URL after login. skappala confirms they can log in via SSO redirect but cannot return to their app afterward, asking for help. blake clarifies whether Discourse is the SSO provider and suggests using the return_to parameter documented in the official SSO guide. skappala clarifies their native app is the SSO provider, aims to auto-create Discourse users, and make API calls for chat topics — but is blocked by CORS preflight issues and seeks help configuring headers in the Docker container. The discussion highlights challenges around redirect handling, missing return_to usage, and CORS configuration for API access.
The user enters user name and password in the application, the details are sent to the server which authenticates the user with the auth0 API and send back the token.
I have installed auth0 SSO plugin from GitHub in Discourse and all the client ID, client secrets are added to the plugin.
I want to know who to perform SSO in case of Discourse when I have logged into my application.
For wordPress were are using the following method.
Instead of redirecting the url, can I use GET request so that i will get the response json of user details with the user details instead of complete redirection and never returning back to the home url.
If you are trying to use Auth0 and Discourse together I would recommend following this guide: Configure sign up and log in with Auth0 using the OAuth2 Basic Plugin. It should allow the users to return back to the home url (or even the original url they were on) once they are logged in.
Hi Blake, I’m able to login the user by redirect to url(https://my.discoursesite.com/session/sso_login?sso&sig) for sso, it is logging the user landing in the discourse page but not redirecting back to my application page.
please help me how can I get back to my application after logging in
Our native app is the sso provider, i’m trying to create a new user if not existing in discourse based on the users existing in our application, and want to do some api calls to get the user chat topics
I haven’t find the return_to field in the official doc for sso..
I’m facing cors preflight issue while accessing my.discoursesite, please suggest me how can I add the header in the docker container