Search results

Embed Dashboards using SSO in Bold BI

Bold BI supports embedding the dashboards to other web applications using Single Sign-On authentication.

Steps to embed dashboards

Below are the steps to embed dashboards into other web applications.

Get embed secret code

  1. Go to the settings page and click Embed. Enable the Enable embed authentication under that page.

    Enable embed authentication

  2. Click Generate Secret button.

    Generate secret code

  3. On clicking it, the secret code will be generated. Save the secret key safely, as it will not be able to retrieve or restore this generated secret.

    Copy secret code

  4. Once the secret code is generated, it can be reset by clicking the Reset Secret button.

    Reset secret code

Warning : Resetting this code will break the previously working embedded dashboards.

Creating the embed URL

The embed URL should be in the below format,

{dashboard URL}/{embed parameters}&embed_signature={signature}


Please find the details of the parameter in the URL as below,

Parameter Description
dashboard URL URL of the dashboard to be embed.
embed parameters Parameters required to embed the dashboard with SSO.
signature Authorized key for the dashboard to be embed.

Parameters to generate the signature in the embed URL

The below values are necessary to form the signature

Parameter Mandatory Description Example
embed_nonce Yes Random string that restricts the URL reconstruction or attacks from the hackers. 0fa8d95d-e262-4a89-0976-390e3a57ee50
embed_user_email Yes The email id of the user.
embed_dashboard_views No This value makes you to check the views in the embedded dashboard. true
embed_dashboard_views_edit No This value allows you to perform the actions such as save view, update view and delete views in the embedded dashboard. true
embed_dashboard_export No The export option to various format of the dashboard and widget in embedded dashboard is displayed based on this value. true
embed_dashboard_comments No The actions related to comments such as post, edit, delete, reply, watch, un-watch, posting the image and user mention list options can be performed in dashboard based on this value. true
embed_widget_comments No The actions related to comments such as post, edit, delete, reply, posting the image and user mention list options can be performed in widgets based on this value. true
embed_dashboard_favorite No The embedded dashboard can be marked as favorite based on this value. true
embed_datasource_filter No The embedded dashboard can be filtered with passed Dashboard Parameter and URL Parameter. `If you would like to pass Dashboard Parameter - embed_datasource_filter=&&Parameter1=Value1`
`If you would like to pass URL Parameter - embed_datasource_filter=&Parameter2=Value2`
`If you would like to pass both Dashboard and URL parameter - embed_datasource_filter=&&Parameter1=Value1&Parameter2=Value2`
embed_timestamp Yes The current time as UNIX time stamp. The embed URL formed is valid for 5 minutes from this embed time stamp. 1583934776
embed_expirationtime No Set the duration for the token to be alive. It must be represented in seconds. The default time is 86400 s and the maximum is 604800 s. 604800

Generating the signature for the embed URL

Parameter Mandatory Description Example
embed_signature Yes A signature generated using the secret code to authenticate the embed URL. VYrDMVX4h85PrRBKX9mystRHYkU8z+HVC9bkVMc2qGY=

The embed parameter should be formed as in the below format.


To obtain the signature for the embed URL, pass the query parameters as an argument to the below GetSignatureUrl method. It will return the hashed signature, which you must append to the existing query parameters with the query parameter name as ‘embed_signature’.

        public string GetSignatureUrl(string queryString)
            // Get the embedSecret key from Bold BI.
            var embedSecret = "8apLLNabQisvriG2W1nOI7XWkl2CsYY";
            var encoding = new System.Text.UTF8Encoding();
            var keyBytes = encoding.GetBytes(embedSecret);
            var messageBytes = encoding.GetBytes(queryString);
            using (var hmacsha1 = new HMACSHA256(keyBytes))
                var hashMessage = hmacsha1.ComputeHash(messageBytes);
                return Convert.ToBase64String(hashMessage);

We have provided the code snippet to generate the signature in C#. You can write the equivalent code in your platform language.

Available parameter

Name Type In Dashboards In Widgets
embed_dashboard_comments boolean Show/hide dashboard comments NA
embed_widget_comments boolean NA Show/hide widget comments
views boolean Show/hide dashboard views NA
export boolean Show/hide dashboard export option Show/hide widget export option
hide_header boolean Show/hide dashboard header NA
hide_tool string Predefined values: tm-Theme,dp-Dashboard Parameter,fo-Filter Overview,fs-FullScreen,rf-Refresh,om-Option Menu NA
hide_widget_tool string NA Predefined values: fr-Filter,fs-FullScreen,om-Option Menu

How to pass the dashboard parameter and URL parameter filters in embed URL

In embed URL, you can pass both types of filters(Dashboard Parameter/URL Filter Parameter) values at the same time.

Pass your filters to the embed_datasource_filter URL parameter in the embed URL as follows.

  • In the embed URL, the dashboard parameter filter must be started with a double ampersand &&. For more details, Refer to this link.

  • In the embed URL, the URL filter parameter must be started with a single ampersand &. For more details, refer to this link .

Sample to embed dashboard using SSO authentication

You can download the sample here.