Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

discourse/discourse-azure-ad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

discourse-azure-oauth2

A Discourse plugin to enable login Microsoft Azure Active Directory users via OAuth2.

Configuration

Add your Discourse site as an application in Windows Azure Active Directory (WAAD). Follow instructions here, and use the following values:

  • Name is not important.
  • Choose "Web Application and/or Web API" as the application type.
  • Sign-On URL (aka Reply URL): enter the full URL with path /auth/azure_oauth2/callback. e.g., http://discourse.example.com/auth/azure_oauth2/callback
  • App ID URI: use the root url of your Discourse site. e.g., http://discourse.example.com
  • Click on the new app, choose Configure from the top nav, and generate a new key in the "Keys" section.
  • In the Configure section, you'll find the client ID, and the key that you generated will be used as the client secret. Also make sure that the Reply URL is the full url to /auth/azure_oauth2/callback.

If you're running Discourse from the Docker container, add these environment variables to your container's yml file:

  • DISCOURSE_AZURE_CLIENT_ID
  • DISCOURSE_AZURE_CLIENT_SECRET
  • (optional) DISCOURSE_AZURE_TENANT_ID
  • (optional) DISCOURSE_AZURE_TITLE

Or if you're not using Docker add the following to your discourse.conf file:

  • azure_client_id
  • azure_client_secret
  • (optional) azure_title

Releases

No releases published

Packages

No packages published

Languages