cuo_wu
(cuo wu)
June 19, 2025, 4:22pm
1
Features
We know that Discourse officially does not use Discourse as a solution for an Oauth2/OIDC Provider.
To better implement the service and to allow everyone to bring more creativity into NL, NL has implemented an Oauth2/OIDC Provider based on Parkour-Vienna/distrust: Use discourse as an OIDC (OAuth 2.0) provider , which allows users to apply for applications themselves.
Configuration
I used Mysql to store user-related data, so the specific usage method is to first install Mysql/MariaDB, execute the Sql script to create the database; then configure distrust.yml, set the database-related content, and then execute distrust genkey to generate the corresponding rsa key; then create a discourse connect provider in the Discourse backend and enter the relevant information.
Then execute
chmod _+x distrust
./distrust
Access your IP:3000/apps to see the application interface.
Demo
When user use Oauth2/OIDC login.
5 Likes
cuo_wu:
Summary
Oauth2/OIDC Provider. User can create them own apps.
Download Link
VVPP.CC
Features
We know that Discourse does not have an official solution for using Discourse as a Provider for Oauth2/OIDC.
In order to better implement the service, and to allow people to bring more ideas into NL, NL has implemented a version of Oauth2/OIDC that users can apply for themselves, based on Parkour-Vienna/distrust: Use discourse as an OIDC (OAuth 2.0) provider .
Configuration
I use Mysql to store user-related data, so the specific edible method is, first install Mysql/MariaDB, execute the Sql script to build the database; then configure distrust.yml, set the database related content, and then execute distrust genkey, generate the corresponding rsa key.
Then go to the Discourse background to create then go to the backend of Discourse and create a discourse connect provider, and write the relevant information into it.
Then execute
chmod _+x distrust
./distrust
Visit your IP:3000/apps to see the application interface.
Demo
When user use Oauth2/OIDC login.
This seems to be the piece I was looking for but I’m not technical, so I will patiently wait until someone looks into it
I’m sharing the OP translated to english with DeepL .
1 Like