Get started with your custom plugin development.
Custom plugins are embedded web applications that extend the functionality of the Staffbase platform. Start building the solution you have envisioned and streamline content and processes for users.
When developing custom plugins for the Staffbase platform, you have the following choices:
Before you start developing the custom plugin, ensure that your custom plugin meets the requirements for embedded web applications and can also function on mobile devices:
frame-ancestors
directive, for the domain where you host the plugin, the X-Frame Options header is obsolete. To ensure that the rendering is supported on all browsers, configure the CSP frame-ancestors
to integrate with Staffbase. Learn more.Secure
, HttpOnly
and SameSite=None
For more details on what is required, check our SDKs. As soon as all the requirements for the custom plugin are met, you are ready to start the development.
Use an SDK to help you easily build a web application that can be embedded into the Staffbase environment:
We recommend to use our SDK for NodeJS and the project skeleton generator that comes along with it.
If you are developing your own plugin for your Staffbase app, you may want your plugin to communicate with our clients. In order to make this possible we implemented a JavaScript based API and communication layer for all our apps. We want to provide a library to help you improve your plugin functionality. This SDK provides the basic functionality to get information provided by the Staffbase app to your plugin and trigger application events.
If you want to direct users to a specific page or content in your plugin, create deep links. Learn more about it here.
Finally, test and ensure that the web application you developed using the SDK runs on the web server it is hosted.
Before custom plugin authentication constraints can be specified to establish authorized communication between the plugin and the Staffbase server, Staffbase requires the specifications of the plugin to provide the information.
Reach out to support@staffbase.com to receive the datasheet to provide the plugin specifications. Fill out the datasheet with specifications, such as:
Publisher Details
Custom Plugin Description
<name of the custom plugin>
to add an instance of the custom plugin.#FFFFFF
Custom Plugin Specifications
You need to specify authentication parameters in the code of your custom plugin. In order to ensure that the request from the Staffbase server can be authenticated by the host of the custom plugin. The authentication parameters required are:
Staffbase provides you with the authentication parameters, after you have submitted your plugin specifications. Add the parameter values to your code snippet. These values are matched to decode the JSON Web Token and authenticate the requests from the Staffbase server.
Example: In the SDK for NodeJS, you can add the values to the following code snippet.
The jwtToken parameter is generated with each request.
Once the web application is developed, you can integrate it into the Staffbase environment. This involves registration and activation of the plugin to the Staffbase platform. Once you have added the authentication, inform Staffbase to initiate the registration process of the plugin in the Staffbase server and activate the custom plugin for your organization and the admin can install it for the organization from the Plugins page in the Staffbase Studio.