0.1.0 • Published 5 years ago
@s2sdeveloper/nodebb-plugin-teams-embed v0.1.0
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
cdinto the repo. - Run
npm link cdinto the directory where nodebb is installed and runnpm link nodebb-plugin-teams-embedActivate the plugin by running
./nodebb activate nodebb-plugin-teams-embedInstall 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.jsonin 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-sharingAdd cookie name, domain and JWT secret in the required fields.

Make sure that the
cookieNameanddomainare the same as those you saved inappsettings.json.JWT secret should be the same as in the C# backend.
Add the custom names of the payload keys

Press save and you're good to go.
0.1.0
5 years ago