Перейти к файлу
Nathan Totten a5837975b2 Create LICENSE.txt 2015-01-26 15:13:26 -08:00
assets/javascripts update to lock 2014-10-07 17:08:24 -03:00
config load SiteSettings at the end 2014-04-29 14:05:51 -03:00
.gitignore initial 2014-01-29 13:24:40 -03:00
LICENSE.txt Create LICENSE.txt 2015-01-26 15:13:26 -08:00
README.md update readme 2015-01-15 12:33:05 -03:00
plugin.rb update to lock 2014-10-07 17:08:24 -03:00

README.md

Discourse + Auth0

This is a Discourse plugin to do Single Sign On using Auth0.

Demo: https://ask.auth0.com

discourse login

What do I get by using Auth0?

  • Support for Active Directory / LDAP (see animated gif)
    • No matter if Discourse is on the cloud or on-prem, it will work transparently
    • Support for Kerberos too (configured by IP ranges)
  • Support for other enterprise logins like SAML Protocol, Windows Azure AD, Google Apps, Salesforce, etc. All supported here: https://docs.auth0.com/identityproviders.
  • Support for social providers without having to add OmniAuth strategies by hand. Just turn on/off social providers (see animated gif)
  • Support for Single Sign On with other Discourse instances and any other application in your account (see animated gif.

Installation

  • Create an account on Auth0 and open the application settings.

  • Install Discourse. You can use this guide to install Discourse on any platform

  • Edit your containers/app.yml to include this under hooks > after_code > exec > cmd:

     - git clone https://github.com/auth0/discourse-plugin.git auth0
    
  • Follow the rest of the tutorial

  • Login as an administrator using a discourse account (not auth0 yet)

  • Configure your settings as shown in this image

̇

Enjoy!


Adding Active Directory / LDAP

active directory config

Adding Social Providers

social providers config

Single Sign On Between multiple Discourse forums

single sign on

Single Sign On with Windows Authentication

windows auth

Using Discourse Login Dialog instead of Auth0

You can keep using Discourse Login dialog and integrate only a specific connection from Auth0. It will show up as another button like the social providers.

Go to admin site settings for Auth0 and change the auth0_connection with the connection name you want to use from Auth0.

Give admin rights to an email

$ RAILS_ENV=production bundle exec rails c
$ u = User.find_by_email('the-email-you-want-to-make-admin@whatever.com')
$ u.admin = true
$ u.save!

Issue Reporting

If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.

License

MIT - 2014 - AUTH0, INC.