This plugin enables the OAuth2 client capability for Discourse. It allows Onebox to fetch content from private websites like ones hosted by Azure App Service with authentication (Easy Auth).
-
Launch a devcontainer of https://github.com/discourse/discourse
-
Clone in the plugins folder:
git -C plugins clone https://github.com/yaegashi/discourse-oauth2-client
-
Run the following in the first terminal:
./bin/ember-cli -u
-
Run the following in the second terminal:
EXCON_DEBUG=1 bundle exec rails s
-
Run the following in the third terminal:
EXCON_DEBUG=1 bundle exec sidekiq
-
Create an admin account in the fourth terminal (doc):
bundle exec rake admin:create
-
Open https://localhost:4200 and log in as the admin account.
-
Find discourse-oauth2-client settings in http://localhost:4200/admin/plugins.