This Discourse plugin enables logging in via Participa platform, and uses OmniAuth Participa to manage authentication via OAuth 2.
Add this repository's git clone
url to your container's app.yml
file, at the bottom of the cmd
section:
hooks:
after_code:
- exec:
cd: $home/plugins
cmd:
- mkdir -p plugins
- git clone https://github.com/discourse/docker_manager.git
- git clone https://github.com/adab1ts/discourse-oauth2-participa.git
Then rebuild your container:
$ cd /var/discourse
$ ./launcher rebuild app
Participa platform supports OAuth 2 authentication, playing the Authorization and Resource Server roles, and uses the Authorization Code grant to authorize Client apps acting on behalf the user.
-
Contact the platform admin and ask for the following data:
- Client ID
- Client Secret
- Participa URL
- Authorization URL for Participa
- Token URL for Participa
- User endpoint URL for Participa
-
Provide your Redirect URI when asked:
https://your.discourse.host/auth/participa/callback
-
Log in to Discourse as an admin user and update the plugin settings in the Admin > Settings > Login area:
Email: info[@]adabits[.]org
Twitter: @adab1ts
Facebook: Adab1ts
LinkedIn: adab1ts
Contributions of any kind are welcome!
Klaudia Alvarez | Carles Muiños |
This plugin is available as open source under the terms of the MIT License.