From 1ebe636f25d495d620c840f88e62f0054f82285d Mon Sep 17 00:00:00 2001 From: Wolfgang Mathurin Date: Wed, 27 Mar 2019 15:30:52 -0700 Subject: [PATCH] Update README.md --- credshelper/README.md | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/credshelper/README.md b/credshelper/README.md index a98bd3ef..b24ed99b 100644 --- a/credshelper/README.md +++ b/credshelper/README.md @@ -1,19 +1,21 @@ # Helper app to build a test_credentials.json for running tests locally +## First time In the current directory - ```sh $ npm i -$ npm start - ``` -Make sure CORS policy is disabled (*) in you browser if you want test_credentials.json to include identity data needed by Android tests. - -In a browser, open `http://localhost:8080`, enter credentials. - -Copy the test credentials to your `test_credentials.json` file! +## Running server +In the current directory +```sh +$ npm start +``` -(*) On chrome install https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi or run chrome --disable-web-security +## Getting json for your test_credentials.json file +In a browser, open `http://localhost:8080`, pick your login host and click `Start Login Flow` button. +In popup, enter credentials. +After the approval screen, the popup should close and the main window will show you the json for your `test_credentials.json` file. +NB: the `test_credentials.json` file on Android contains additional fields. To get those additional fields, a call to the identity URL is made. This will only work if your browser has CORS policy disabled. To disable CORS, simply run chrome with the `--disable-web-security` flag.