From 7d9a98f96e4ae27cf6c21383e0aca335caf5a9dc Mon Sep 17 00:00:00 2001 From: Reza Mohammadi Date: Sun, 4 Sep 2016 18:50:57 +0430 Subject: [PATCH] documentation: multiple fixes in examples README * In a9dce1c, the defaults are set to the `.example` paths, except for `emailer.json` which is instead committed into the git repository. So there's no need to duplicate those file in order to start dex-worker. * The default value for discovery is moved from `/` to `/dex` in #521 * Typo in `client-secret` value. --- examples/README.md | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/examples/README.md b/examples/README.md index 9f325c89..aed461bd 100644 --- a/examples/README.md +++ b/examples/README.md @@ -10,17 +10,8 @@ First, build the example webapp client and example CLI client. ./build ``` -Now copy the example configurations into place to get dex configured. -You can customize these later but the defaults should work fine. - -```console -cp static/fixtures/clients.json.sample static/fixtures/clients.json -cp static/fixtures/connectors.json.sample static/fixtures/connectors.json -cp static/fixtures/users.json.sample static/fixtures/users.json -cp static/fixtures/emailer.json.sample static/fixtures/emailer.json -``` - -With `dex-worker` configuration in place we can start dex in local mode. +We can start dex in local mode. The default values for `dex-worker` flags are set to load +some example objects which will be used in the next steps. ```console ./bin/dex-worker --no-db & @@ -34,8 +25,8 @@ supplying the client information from `./static/fixtures/clients.json` into the ```console ./bin/example-app \ --client-id=example-app \ - --client-secret=eZXhhbXBsZS1jbGktc2VjcmV0 \ - --discovery=http://127.0.0.1:5556 + --client-secret=ZXhhbXBsZS1hcHAtc2VjcmV0 \ + --discovery=http://127.0.0.1:5556/dex ``` Visit [http://localhost:5555](http://localhost:5555) in your browser and click "login" link. @@ -55,5 +46,5 @@ The example CLI will start, connect to the Dex instance to gather discovery info ./bin/example-cli \ --client-id example-cli \ --client-secret ZXhhbXBsZS1jbGktc2VjcmV0 \ - --discovery=http://127.0.0.1:5556 + --discovery=http://127.0.0.1:5556/dex ```