0.3.6 • Published 4 years ago

nodebb-plugin-sso-nextcloud v0.3.6

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

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!