We have created ASP.NET Core sample with Embedded SDK, here we could listing all the dashboards and render the dashboard based on your selection after passing the authorization.
NOTE: The best way to get started would be to read the Getting Started section of the documentation to start using first. The Getting Started guide gives just enough information that you need to know before working on the sample.
Please download the ASP.NET Core sample from here.
In ASP.NET Core sample, you can find the EmbedProperties class file in Models folder.
EmbedProperties.cs, you need to set the following properties.
|RootUrl||Dashboard Server BI URL (ex: http://localhost:5000/bi, http://demo.boldbi.com/bi)|
|SiteIdentifier||For Bold BI Enterprise edition, it should be like `site/site1`. For Bold BI Cloud, it should be empty string.|
|Environment||Your Bold BI application environment. (If Cloud, you should use `cloud`, if Enterprise, you should use `enterprise`)|
|UserEmail||UserEmail of the Admin in your Bold BI, which would be used to get the dashboards list|
|UserPassword||Password of the Admin in Bold BI, which would be used to get the dashboards list|
|EmbedSecret||You could get your EmbedSecret key from Embed tab by enabling `Enable embed authentication` in Administration page as mentioned in next step|
You could get your Embed Secret key from administrator setting section. Please refer this link for more details.
Then run your ASP.NET Core sample.
Based on the values provided in the
EmbedProperties.cs, we would get the user token and validate it, then could get the dashboards list from server.
HomeController.cs, we have added GetToken() method and GetDashboards() action, which has been called when initializing the DOM in
When you selecting the dashboard to render, we would authorize the server url by calling the GetEmbedDetails action with provided EmbedProperties values.
In above authorization, we have generated SignatureUrl with provided EmbedSecret key and validate embed details in Bold BI. Then only dashboard would be rendered in viewer-section of