NodeBB Plugin that allows users to login/register via any NextCloud OAuth2 provider.
- Go to your NextCloud -> Settings - > Security, scroll down to OAuth 2.0 Clients.
- Add a new client with a name, and callback URL, like this:
https://NODEBB_URL/auth/nextcloud/callback
(replace NODEBB_URL with your own nodebb domain) - Then copy the generated ID and SECRET
- Edit your NodeBB
config.json
file and add the ID/Secret pair:
"oauth": {
"id": "someoauthid",
"secret": "youroauthsecret"
},
- Open and edit
library.js
of this plugin (located at node_modules/nodebb-plugin-sso-nextcloud in your NodeBB directory). Replace NC_URL with your NextCloud URL at lines 60, 61 and 65 - Activate this plugin from the plugins page
- Restart your NodeBB
- Let NodeBB take care of the rest
The NodeBB team builds out SSO plugins for a nominal fee. Reach out to us for a quote.
Find us on the community forums!