This a very simple sso endpoint to use for development and to learn how Discourse Single-Sign-On works. Please refer to the Official Single-Sign-On Docs for more info.
If you would like to get this SSO Endpoint running locally follow these steps:
- Get Discourse running locally in development mode
- Clone this repo
cd sso_endpointbundle install- Start the server with this command:
rackup --host 0.0.0.0 - Setup SSO on your Discourse instance
enable_sso = truesso_url = http://localhost:9292/ssosso_secret = abcdefghij- Browse to http://localhost:3000 and then login. You will be redirect to the SSO Endpoint and a random new user will be returned and created inside of discourse with an external_id.