diff --git a/README.md b/README.md
index d1a5341..98501de 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ This project was created using NodeJS 18.18. This application aims to demonstrat
3. Finally, run the application using the following command
```bash
- node embed.js
+ node tokengeneration.js
```
4. After the application has started, it will display a URL in the `command line interface`, typically something like (e.g., ). Copy this URL and paste it into your default web browser.
@@ -67,7 +67,7 @@ This project was created using NodeJS 18.18. This application aims to demonstrat
* Finally, run the application using the following command.
```bash
- node embed.js
+ node tokengeneration.js
```
* After the application has started, it will display a URL in the `command line interface`, typically something like (e.g., ). Copy this URL and paste it into your default web browser.
@@ -86,4 +86,4 @@ Look at the Bold BI Embedding sample to live demo [here](https://samples.boldbi.
## Documentation
-A complete Bold BI Embedding documentation can be found on [Bold BI Embedding Help](https://help.boldbi.com/embedded-bi/javascript-based/?utm_source=github&utm_medium=backlinks).
+A complete Bold BI Embedding documentation can be found on [Bold BI Embedding Help](https://help.boldbi.com/embedded-bi/javascript-based/?utm_source=github&utm_medium=backlinks).
\ No newline at end of file
diff --git a/embed.js b/embed.js
deleted file mode 100644
index 9c9c7c8..0000000
--- a/embed.js
+++ /dev/null
@@ -1,75 +0,0 @@
-var fs = require("fs");
-var http = require("http");
-var https = require("https");
-var url = require("url");
-var express = require('express');
-var cors = require('cors');
-var app = express();
-var bytes = require('utf8-bytes');
-var crypto = require('crypto');
-
-app.use(cors());
-// Parse JSON bodies (as sent by API clients)
-app.use(express.json());
-
-var appconfig = JSON.parse(fs.readFileSync('embedConfig.json'));
-
-// Get the embedSecret key from Bold BI
-var embedSecret = appconfig.EmbedSecret;
-
-var configjson ={"DashboardId": appconfig.DashboardId, "ServerUrl":appconfig.ServerUrl, "SiteIdentifier": appconfig.SiteIdentifier, "Environment": appconfig.Environment, "EmbedType": appconfig.EmbedType};
-
-//Enter your BoldBI credentials here
-var userEmail = appconfig.UserEmail;
-
-app.post('/embeddetail/get', function (req, response) {
- var embedQuerString = req.body.embedQuerString;
- var dashboardServerApiUrl = req.body.dashboardServerApiUrl;
-
- embedQuerString += "&embed_user_email=" + userEmail;
- embedQuerString += "&embed_server_timestamp=" + Math.round((new Date()).getTime() / 1000);
- var embedSignature = "&embed_signature=" + GetSignatureUrl(embedQuerString);
- var embedDetailsUrl = "/embed/authorize?" + embedQuerString+embedSignature;
-
- var serverProtocol = url.parse(dashboardServerApiUrl).protocol == 'https:' ? https : http;
- serverProtocol.get(dashboardServerApiUrl+embedDetailsUrl, function(res){
- var str = '';
- res.on('data', function (chunk) {
- str += chunk;
- });
- res.on('end', function () {
- response.send(str);
- });
- });
-})
-
-function GetSignatureUrl(queryString)
-{
- var keyBytes = Buffer.from(embedSecret);
- var hmac = crypto.createHmac('sha256', keyBytes);
- data = hmac.update(queryString);
- gen_hmac= data.digest().toString('base64');
-
-return gen_hmac;
-}
-
-app.get("/",function (request, response) {
-
- var pathname = url.parse(request.url).pathname;
- console.log("Request for " + pathname + " received.");
-
- response.writeHead(200);
-
- if(pathname == "/") {
- html = fs.readFileSync("index.html", "utf8");
- html = html.replace("
-
-
-
-
+
- //Item id of the dashboard in the Bold BI server`
- var dashboardId = configjson.DashboardId;
+
+
+
-
-