Commit b0f17c94 authored by bobbyrullo's avatar bobbyrullo

Merge pull request #446 from xaka/patch-2

examples: add sample for clients
parents 02bf1150 dec5d906
...@@ -28,6 +28,7 @@ coverage/ ...@@ -28,6 +28,7 @@ coverage/
deploy/ deploy/
Godeps/_workspace/src/github.com/coreos/dex Godeps/_workspace/src/github.com/coreos/dex
static/fixtures/env.txt static/fixtures/env.txt
static/fixtures/clients.json
static/fixtures/connectors.json static/fixtures/connectors.json
static/fixtures/users.json static/fixtures/users.json
static/fixtures/emailer.json static/fixtures/emailer.json
......
...@@ -4,11 +4,12 @@ ...@@ -4,11 +4,12 @@
When you are working on dex it's convenient to use the `--no-db` flag. This starts up dex in a mode which uses an in-memory datastore for persistence. It also does not rotate keys, so no overlord is required. When you are working on dex it's convenient to use the `--no-db` flag. This starts up dex in a mode which uses an in-memory datastore for persistence. It also does not rotate keys, so no overlord is required.
In this mode you provide the binary with paths to files for connectors, users, and emailer. There are example files you can use inside of `static/fixtures` named *"connectors.json.sample"*, *"users.json.sample"*, and *"emailer.json.sample"*, respectively. In this mode you provide the binary with paths to files for clients, connectors, users, and emailer. There are example files you can use inside of `static/fixtures` named *"clients.json.sample"*, *"connectors.json.sample"*, *"users.json.sample"*, and *"emailer.json.sample"*, respectively.
You can rename these to the equivalent without the *".sample"* suffix since the defaults point to those locations: You can rename these to the equivalent without the *".sample"* suffix since the defaults point to those locations:
```console ```console
cp static/fixtures/clients.json.sample static/fixtures/clients.json
cp static/fixtures/connectors.json.sample static/fixtures/connectors.json cp static/fixtures/connectors.json.sample static/fixtures/connectors.json
cp static/fixtures/users.json.sample static/fixtures/users.json cp static/fixtures/users.json.sample static/fixtures/users.json
cp static/fixtures/emailer.json.sample static/fixtures/emailer.json cp static/fixtures/emailer.json.sample static/fixtures/emailer.json
......
...@@ -14,6 +14,7 @@ Now copy the example configurations into place to get dex configured. ...@@ -14,6 +14,7 @@ Now copy the example configurations into place to get dex configured.
You can customize these later but the defaults should work fine. You can customize these later but the defaults should work fine.
```console ```console
cp static/fixtures/clients.json.sample static/fixtures/clients.json
cp static/fixtures/connectors.json.sample static/fixtures/connectors.json cp static/fixtures/connectors.json.sample static/fixtures/connectors.json
cp static/fixtures/users.json.sample static/fixtures/users.json cp static/fixtures/users.json.sample static/fixtures/users.json
cp static/fixtures/emailer.json.sample static/fixtures/emailer.json cp static/fixtures/emailer.json.sample static/fixtures/emailer.json
...@@ -27,7 +28,7 @@ With `dex-worker` configuration in place we can start dex in local mode. ...@@ -27,7 +28,7 @@ With `dex-worker` configuration in place we can start dex in local mode.
## Example Webapp Client ## Example Webapp Client
Build and run the example app webserver by pointing the discovery URL to local Dex, and Build and run the example app webserver by pointing the discovery URL to local Dex, and
supplying the client information from `./static/fixtures/clients.json` into the flags. supplying the client information from `./static/fixtures/clients.json` into the flags.
```console ```console
......
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