Commit 7d9a98f9 authored by Reza Mohammadi's avatar Reza Mohammadi Committed by GitHub

documentation: multiple fixes in examples README

* In a9dce1c1, 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.
parent d758e38c
......@@ -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
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment