Skip to content

Commit

Permalink
documentation: multiple fixes in examples README
Browse files Browse the repository at this point in the history
* 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 dexidp#521
* Typo in `client-secret` value.
  • Loading branch information
remohammadi committed Sep 4, 2016
1 parent d758e38 commit 7d9a98f
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 &
Expand All @@ -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.
Expand All @@ -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
```

0 comments on commit 7d9a98f

Please sign in to comment.