Category / Section
How to use a JWT authentication token created in Bold BI Web data source connector with extract mode
Published:
Some APIs may require JWT token as authentication to connect. JWT token can be generated from the Web data source connector in Bold BI by following their corresponding API documentation. Once created a JWT authentication token in Extract mode it can be accessed in other data sources by creating a dashboard parameter with the JWT token column as the parameter.
Steps to create JWT token as dashboard parameter
First you need to check if the JWT token you are trying to generate can be created through REST API. Then,
- Create a Web data source with the corresponding token API. Enter the token API in URL, add required Authentication, Headers, Method type, etc., and connect. Check the data preview in the next dialog if JWT token is available in the response and click connect.
- Create a dashboard parameter in the token data source with JWT token column as parameter. In the parameter dialog, for value select the Data source radio button and select the column which have JWT token. Refer to this document to know more on dashboard parameters.
- Save the parameter once you did the above changes. Save the data source
- Now you can pass the token and to any data source which needs this token, by following below syntax and screenshot
Syntax: @{{:DatasourceName.ParameterName}}
Related Articles: