Skip to content

Commit 1ff7cb4

Browse files
authored
Merge pull request #15 from mindsphere/feat/insights-hub
feat: 2.0.0 release (manifest 3)
2 parents bb45274 + cc2e96e commit 1ff7cb4

12 files changed

+1830
-4246
lines changed

.eslintrc.json

-17
This file was deleted.

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,7 @@ dist/
5050

5151
*.crx
5252
*.pem
53+
54+
# MAC .DS_STORE
55+
.DS_Store
56+

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 2.0.0 January 2024
4+
5+
- renamed MindSphere to Insights Hub
6+
- fixed the layout issues which were introduced with the new way how Chrome treats extensions
7+
- updated links to point directly to [Siemens Xcelerator Developer Portal](https://developer.siemens.com)
8+
- updated Chrome Manifest to Version 3
9+
- bumped dependencies
10+
311
## 1.0.4 September 2021
412

513
- show the cookies even when there is no XSRF_TOKEN

README.md

+11-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
# MindSphere Authorization Helper Chrome Extension
1+
# Insights Hub and Industrial IoT Authorization Helper Chrome Extension
2+
3+
MindSphere has evolved into [Insights Hub](https://plm.sw.siemens.com/en-US/insights-hub/).
24

35
![logo](images/authentication-helper2.png)
46

5-
This chrome extension can be used to simplify the development tasks for which you need to use the [SESSION and XSRF-TOKEN](https://developer.mindsphere.io/howto/howto-local-development.html#generate-user-credentials) to access MindSphere APIs. It provides an easy way to copy the MindSphere authentication cookies to the clipboard without having to go to chrome developer tools.
7+
This chrome extension can be used to simplify the development tasks for which you need to use the [SESSION and XSRF-TOKEN](https://developer.mindsphere.io/howto/howto-local-development.html#generate-user-credentials) to access Insights Hub and Indutrial IoT APIs. It provides an easy way to copy the Insights Hub and Indutrial IoT authentication cookies to the clipboard without having to go to chrome developer tools.
68

79
## Installation
810

911
Go to <a href="https://chrome.google.com/webstore/detail/mindsphere-authentication/licndiiilobojikmhmmcgdbpmnmdeoee"><i class="fab fa-chrome"></i> chrome web store</a> and click on **add to chrome**.
1012

11-
Once the extension is installed: log in to your MindSphere tenant, navigate to your application and click on the extension icon to display the available application cookies. You can now click e.g. on **session** or **Xsrf** button which will copy the corresponding cookie to your clipboard.
13+
Once the extension is installed: log in to your Insights Hub and Indutrial IoT tenant, navigate to your application and click on the extension icon to display the available application cookies. You can now click e.g. on **session** or **Xsrf** button which will copy the corresponding cookie to your clipboard.
1214

1315
![screenshot](images/screenshot.extension.png)
1416

@@ -24,20 +26,20 @@ curl -vv \
2426
https://<tenantId>-<appId>-<tenantId>.<regionId>.mindsphere.io/api/assetmanagement/v3/assets
2527
```
2628

27-
## Using the cookies with MindSphere CLI
29+
## Using the cookies with Insights Hub and Indutrial IoT CLI
2830

29-
The extension works really well with the MindSphere CLI in the [Session Cookie - XSRF-Token Configuration](https://opensource.mindsphere.io/docs/mindconnect-nodejs/cli/setting-up-the-cli.html#tab1anchor3) because the **Bash**, **PS**, and **CMD** buttons already copy the cookies in the required format for MindSphere CLI.
31+
The extension works really well with the Insights Hub and Indutrial IoT CLI in the [Session Cookie - XSRF-Token Configuration](https://opensource.mindsphere.io/docs/mindconnect-nodejs/cli/setting-up-the-cli.html#tab1anchor3) because the **Bash**, **PS**, and **CMD** buttons already copy the cookies in the required format for Insights Hub and Indutrial IoT CLI.
3032

31-
Use the extension to copy the cookies to the clipboard, paste them to the command line and start using the [MindSphere CLI](https://opensource.mindsphere.io/docs/mindconnect-nodejs/cli/index.html) right away.
33+
Use the extension to copy the cookies to the clipboard, paste them to the command line and start using the [Insights Hub and Indutrial IoT CLI](https://opensource.mindsphere.io/docs/mindconnect-nodejs/cli/index.html) right away.
3234

3335
![cli](images/cookieresult.png)
3436

35-
## Using the cookies with MindSphere Development Proxy
37+
## Using the cookies with Insights Hub and Indutrial IoT Development Proxy
3638

37-
You can also use the extension to simplify the start of [MindSphere Development Proxy](https://opensource.mindsphere.io/docs/mindconnect-nodejs/cli/development-proxy.html) in a similar fashion. Just copy/paste the cookies to the command line and [start the development proxy](https://opensource.mindsphere.io/docs/mindconnect-nodejs/cli/development-proxy.html#tab1anchor1).
39+
You can also use the extension to simplify the start of [Insights Hub and Indutrial IoT Development Proxy](https://opensource.mindsphere.io/docs/mindconnect-nodejs/cli/development-proxy.html) in a similar fashion. Just copy/paste the cookies to the command line and [start the development proxy](https://opensource.mindsphere.io/docs/mindconnect-nodejs/cli/development-proxy.html#tab1anchor1).
3840

3941
![cli](images/proxy-cookie.png)
4042

41-
This will start the development proxy with the credentials of the logged in users so that you can test the MindSphere authentication and authorization also in the local environment.
43+
This will start the development proxy with the credentials of the logged in users so that you can test the Insights Hub and Indutrial IoT authentication and authorization also in the local environment.
4244

4345
**Important: Treat the authentication cookies like your credentials and use them only in secure environments.**

assets/css/styles.css

+20-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
/** @format */
22

3+
body {
4+
min-width: 650px !important;
5+
min-height: 600px !important;
6+
}
7+
38
#_mdspcontent {
49
margin-top: 25px;
510
font-size: 21px;
611
text-align: center;
7-
animation: fadein 2s;
8-
-moz-animation: fadein 2s; /* Firefox */
9-
-webkit-animation: fadein 2s; /* Safari and Chrome */
10-
-o-animation: fadein 2s; /* Opera */
12+
animation: fadein 1s;
13+
-moz-animation: fadein 1s; /* Firefox */
14+
-webkit-animation: fadein 1s; /* Safari and Chrome */
15+
-o-animation: fadein 1s; /* Opera */
1116
}
1217
@keyframes fadein {
1318
from {
@@ -44,3 +49,14 @@
4449
opacity: 1;
4550
}
4651
}
52+
53+
a.siemensblue {
54+
text-decoration: none;
55+
}
56+
a.siemensblue:hover {
57+
color: #0c2847 !important;
58+
}
59+
60+
i.heartred:hover {
61+
color: #af235f !important;
62+
}

images/cookieresult.png

-4.01 KB
Loading

images/proxy-cookie.png

-226 KB
Loading

images/screenshot.extension.png

35.5 KB
Loading

0 commit comments

Comments
 (0)