Download the PHP package purplespider/silverstripe-discourse-sso without Composer
On this page you can find all versions of the php package purplespider/silverstripe-discourse-sso. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download purplespider/silverstripe-discourse-sso
More information about purplespider/silverstripe-discourse-sso
Files in purplespider/silverstripe-discourse-sso
Download purplespider/silverstripe-discourse-sso
More information about purplespider/silverstripe-discourse-sso
Files in purplespider/silverstripe-discourse-sso
Vendor purplespider
Package silverstripe-discourse-sso
Short Description Log in to Discourse with Silverstripe member accounts
License BSD-3-Clause
Homepage http://github.com/purplespider/silverstripe-discourse-sso
Package silverstripe-discourse-sso
Short Description Log in to Discourse with Silverstripe member accounts
License BSD-3-Clause
Homepage http://github.com/purplespider/silverstripe-discourse-sso
Please rate this library. Is it a good library?
Informations about the package silverstripe-discourse-sso
Silverstripe SSO for Discourse (DiscourseConnect)
Allows users to sign in to Discourse with user accounts on your Silverstripe based website.
Version 2.x requires Silverstripe 6. Use version 1.x for Silverstripe 4 and 5.
Note: This becomes the only way to log in to Discourse. To add a "Log in as..." button instead, look into OAuth, instead of SSO (DiscourseConnect).
Installation
- Install into your Silverstripe site via composer: `
-
Add config: `
- Set
secretto a random string (min 10 characters) - Change
https://community.example.comto your Discourse install's URL.
- Set
- Build the database and flush: `
- Configure DiscourseConnect in your Discourse Admin.
- Settings > Login >
enable discourse connect:Enabled - Settings > Login >
discourse connect url:https://example.com/discourse/sso(Replaceexample.comwith your Silverstripe site's domain.) - Settings > Login >
discourse_connect_secret: Set to the SAME random string from your Silverstripe config above.
- Settings > Login >
Optional Customisation
- Implement user email validation on the Silverstripe side (essential for Discourse).
- Redirect to Silverstripe logout page after a Discourse log out: Discourse > Settings > Users >
logout redirect:https://example.com/Security/logout?BackURL=/home - Log out user on Discourse after logging out from Silverstripe site.
- Using Discouse API.
- Or use something like https://github.com/johnmap/discourse-sso-logout
- Customise Silverstripe log in message: app/lang/en.yml `
- Use an Extension to pass through extra member data to Discourse, and/or customise log in authentication, e.g. ``
_config/discoursesso.yml `
Thanks
Many thanks to Colin Viebrock for their Discourse Single-Sign-On Helper for PHP module which does all the hard work.
All versions of silverstripe-discourse-sso with dependencies
PHP Build Version
Package Version
The package purplespider/silverstripe-discourse-sso contains the following files
Loading the files please wait ...