nodebb-plugin-sso-nextcloud

0.3.6 • Public • Published

NodeBB OAuth SSO NextCloud

Forked and based on @julianlam code

NodeBB Plugin that allows users to login/register via any NextCloud OAuth2 provider.

How to Adapt

  • 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

Trouble?

The NodeBB team builds out SSO plugins for a nominal fee. Reach out to us for a quote.

Find us on the community forums!

Package Sidebar

Install

npm i nodebb-plugin-sso-nextcloud

Weekly Downloads

0

Version

0.3.6

License

MIT

Unpacked Size

17.4 kB

Total Files

8

Last publish

Collaborators

  • normandohall