Cloudpass authentication for Discourse
1.3K
This application allows authenticating to Discourse with Cloudpass accounts.
An image is available on Docker Hub. Simply run it with the right environment variables to configure it (see below).
npm installnpm start| Name | Required | Description |
|---|---|---|
| CLOUDPASS_API_KEY | yes | API key used to authenticate calls to cloudpass |
| CLOUDPASS_API_SECRET | yes | API key secret used to authenticate calls to cloudpass |
| CLOUDPASS_BASE_URL | yes | Cloudpass URL |
| SERVER_PORT | no | The port on which the application will listen. Defaults to 80 |
| SERVER_BASE_URL | no | URL on which the application is accessible. Used for building callback URLs. Required if the application is behind a proxy and not mounted at the root level |
These values can also be read from a configuration file. simply copy the file config/custom-environment-variables.yaml in a new file config/local.yaml, and edit it with the desired values
Add the following Custom Data in the Cloudpass Application:
{
"discourse":{
"ssoSecret": "super_secret_stuff",
"logoutCallbackUri": "http://discourse.example.com"
}
}
ssoSecret is secret shared with Discourse used to hash SSO payloads, it can be any string (c.f. Discourse documentation for more informationlogoutCallbackUri is the URL on which users must be redirected afer logout (e.g. the URL of your Discourse instance)In Settings > Login:
/{applicationId}/login (e.g. http:/discourse-sso.example.com/0485cf2-6032-49dd-b6ad-126e3ca8bd86/login)In Settings > Users:
/{applicationId}/logout (e.g. http:/discourse-sso.example.com/0485cf2-6032-49dd-b6ad-126e3ca8bd86/logout)Add some tests
Content type
Image
Digest
Size
26.3 MB
Last updated
over 9 years ago
docker pull dhatim/cloudpass-discourse-sso