Skip to content

GuanyemBarcelona/discourse-oauth2-participa

 
 

Repository files navigation

Participa OAuth Login Plugin

license

This Discourse plugin enables logging in via Participa platform, and uses OmniAuth Participa to manage authentication via OAuth 2.

Installation

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

Configuration

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.

  1. 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
  2. Provide your Redirect URI when asked: https://your.discourse.host/auth/participa/callback

  3. Log in to Discourse as an admin user and update the plugin settings in the Admin > Settings > Login area:

Contact

Email: info[@]adabits[.]org
Twitter: @adab1ts
Facebook: Adab1ts
LinkedIn: adab1ts

Contributors

Contributions of any kind are welcome!

laklau zuzust
Klaudia Alvarez Carles Muiños

License

This plugin is available as open source under the terms of the MIT License.

About

Participa OAuth2 login support for Discourse

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 91.7%
  • JavaScript 8.3%