From cb0195d4db436f35b3814a19eeba3b11ee2eca25 Mon Sep 17 00:00:00 2001 From: sn0wcat Date: Fri, 14 Aug 2020 21:27:38 +0200 Subject: [PATCH 1/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b97016d..6701a62 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Use the extension to copy the cookies to the clipboard, paste them to the comman ## MindSphere Development Proxy -You can also use the exentsion 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). +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). ![cli](images/proxy-cookie.png) From 2aebf9fb3eada144e7e4980adb3360db0a488cdc Mon Sep 17 00:00:00 2001 From: sn0wcat Date: Tue, 18 Aug 2020 11:48:13 +0200 Subject: [PATCH 2/5] Create CHANGELOG.md --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..b0449b6 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,3 @@ +# 1.0.2 + +- released to chrome store From c065806a306e4ec7de6afbd5f3c8b4d3e0168329 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 18 Aug 2020 09:49:51 +0000 Subject: [PATCH 3/5] chore(deps): bump lodash from 4.17.15 to 4.17.20 Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.20. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.20) Signed-off-by: dependabot[bot] --- package-lock.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index e595931..1981977 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "mindsphere-auth-helper", - "version": "1.0.1", + "version": "1.0.2", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -2146,9 +2146,9 @@ } }, "lodash": { - "version": "4.17.15", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==", "dev": true }, "loose-envify": { From f7e62ef5290a464b8758358f33459f79e089f014 Mon Sep 17 00:00:00 2001 From: sn0wcat Date: Tue, 18 Aug 2020 11:52:10 +0200 Subject: [PATCH 4/5] Update CHANGELOG.md --- CHANGELOG.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b0449b6..704fe37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ -# 1.0.2 +# Changelog + +## 1.0.2 August 2020 - released to chrome store + +## 1.0.1 August 2020 +- vendorded all dependencies + +## 1.0.0 July 2020 +- initial version From c8be8c501df69b008794306ac57ebb0067dc55ed Mon Sep 17 00:00:00 2001 From: sn0wcat Date: Wed, 19 Aug 2020 21:21:10 +0200 Subject: [PATCH 5/5] Update README.md --- README.md | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6701a62..0825c3d 100644 --- a/README.md +++ b/README.md @@ -4,20 +4,40 @@ 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. +## Installation + +Go to chrome web store and click on **add to chrome**. + +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. + ![screenshot](images/screenshot.extension.png) -## MindSphere CLI +The cookies can be used with the tools like [curl](https://developer.mindsphere.io/howto/howto-local-development.html#curl-example), [postman](https://developer.mindsphere.io/howto/howto-local-development.html#postman-example_1) etc. (Click on the links for more examples) + +```bash +#!/bin/bash -The extension works also 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) +curl -vv \ + -G \ + --cookie "SESSION=;XSRF-TOKEN=" \ + -X GET \ + https://--..mindsphere.io/api/assetmanagement/v3/assets +``` -Use the extension to copy the cookies to the clipboard, paste them to the command line (there is bash, Windows CMD and Windows Powershell support) and start using the [MindSphere CLI](https://opensource.mindsphere.io/docs/mindconnect-nodejs/cli/index.html) right away. +## Using the cookies with MindSphere CLI + +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. + +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. ![cli](images/cookieresult.png) -## MindSphere Development Proxy +## Using the cookies with MindSphere Development Proxy 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). ![cli](images/proxy-cookie.png) +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. + **Important: Treat the authentication cookies like your credentials and use them only in secure environments.**