0.1.0 • Published 4 years ago

@s2sdeveloper/nodebb-plugin-teams-embed v0.1.0

Weekly downloads
-
License
GPL-v3.0-or-later
Repository
-
Last release
4 years ago

nodebb-plugin-teams-embed (A NodeBB plugin for Microsoft Teams)

By integrating this plugin we can use all the functionalities of NodeBB Discussion Forum in Microsoft Teams in the following ways:

  • Session will be shared among Teams and NodeBB.
  • An embedded view of NodeBB discussion will be displayed in the NodeBB tab.

Install the plugin

  • Clone the repo and cd into the repo.
  • Run npm link
  • cd into the directory where nodebb is installed and run npm link nodebb-plugin-teams-embed
  • Activate the plugin by running ./nodebb activate nodebb-plugin-teams-embed

  • Install and activate the nodebb-plugin-session-sharing

    npm i nodebb-plugin-session-sharing
    ./nodebb activate nodebb-plugin-session-sharing
  • Build the assets using the commands ./nodebb build
  • open appsettings.json in react app and add the cookie Config. An example is shown. Make sure.
{
  "cookieName": "access_token",
  "expiry": 30,
  "domain": ".teamsdiss.test"
}
  • Open Nodebb as an Admin User and go to the following URL /admin/plugins/session-sharing

  • Add cookie name, domain and JWT secret in the required fields. JWT settings

  • Make sure that the cookieName and domain are the same as those you saved in appsettings.json.

  • JWT secret should be the same as in the C# backend.

  • Add the custom names of the payload keys Payload keys

  • Press save and you're good to go.