GithubHelp home page GithubHelp logo

mindsphere / mindsphere-auth-helper Goto Github PK

View Code? Open in Web Editor NEW
6.0 4.0 1.0 2.07 MB

This chrome extension can be used to simplify the development tasks for which you need to use the SESSION and XSRF-TOKEN to access Insights Hub APIs. It provides an easy way to copy the Insights Hub authentication cookies to the clipboard without having to go to chrome developer tools.

Home Page: https://developer.siemens.com/industrial-iot-open-source/mindsphere-auth-helper/index.html

License: Other

CSS 92.38% HTML 4.25% TypeScript 3.37%
mindsphere authentication helper chrome-extension siemens mindsphere-authentication mindsphere-development-proxy industrial-iot insights-hub siemens-xcelerator

mindsphere-auth-helper's Introduction

Insights Hub and Industrial IoT Authorization Helper Chrome Extension

MindSphere has evolved into Insights Hub.

logo

This chrome extension can be used to simplify the development tasks for which you need to use the SESSION and XSRF-TOKEN 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.

Installation

Go to chrome web store and click on add to chrome.

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.

screenshot

The cookies can be used with the tools like curl, postman etc. (Click on the links for more examples)

#!/bin/bash

curl -vv \
  -G \
  --cookie "SESSION=<session-copied-from=browser>;XSRF-TOKEN=<xsrf-copied-from-browser>" \
  -X GET \
  https://<tenantId>-<appId>-<tenantId>.<regionId>.mindsphere.io/api/assetmanagement/v3/assets

Using the cookies with Insights Hub and Indutrial IoT CLI

The extension works really well with the Insights Hub and Indutrial IoT CLI in the Session Cookie - XSRF-Token Configuration because the Bash, PS, and CMD buttons already copy the cookies in the required format for Insights Hub and Indutrial IoT CLI.

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 right away.

cli

Using the cookies with Insights Hub and Indutrial IoT Development Proxy

You can also use the extension to simplify the start of Insights Hub and Indutrial IoT Development Proxy in a similar fashion. Just copy/paste the cookies to the command line and start the development proxy.

cli

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.

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

mindsphere-auth-helper's People

Contributors

dependabot[bot] avatar sn0wcat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

cksgithub

mindsphere-auth-helper's Issues

add delete of auth0 cookies to the auth-helper

Fix the helper so that it can deal with configurable session persistency.

What's new?

Within this release, we have introduced configurable session persistency.

From 1st of September onwards, all the tenants will be created with enabled session persistency. This means that there is no need to re-authenticate when accessing your tenant for up to 36 hours after closing and re-opening your browser. If you wish to change the session persistency behavior of your new tenant, e.g., due to increased security requirements or in settings, where multiple users share a browser, please reach out to our support team with the subject “Session Persistency Configuration Change”. We will then deactivate session persistency for your tenant. This means that you will have to authenticate every time you access your tenant, e.g., after closing and re-opening the browser.

In case you want to change session persistency of your existing tenant, please also reach out to our support. For more information, refer "Session Persistency" in "Settings" documentation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.