0.1.0 • Published 4 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
cd
into the repo. - Run
npm link
cd
into the directory where nodebb is installed and runnpm 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.
Make sure that the
cookieName
anddomain
are 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
4 years ago