mirror of https://github.com/dexidp/dex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
11 years ago | |
|---|---|---|
| .. | ||
| app | 11 years ago | |
| cli | 11 years ago | |
| emailtester | 11 years ago | |
| tls-setup | 11 years ago | |
| README.md | 11 years ago | |
README.md
Running Examples
The quickest way to start experimenting with dex is to run a single dex-worker locally, with an in-process database, and then interacting with it using the example programs in this directory.
Build Everything and Start dex-worker
This section is required for both the Example App and the Example CLI.
-
Build everything:
./build -
Copy the various example configurations.
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 -
Run dex_worker in local mode.
./bin/dex-worker --no-db &
Example App
-
Build and run example app webserver, pointing the discovery URL to local Dex, and supplying the client information from
./static/fixtures/clients.jsoninto the flags../bin/example-app --client-id=XXX --client-secret=secrete --discovery=http://127.0.0.1:5556 & -
Navigate browser to
http://localhost:5555and click "login" link -
Click "Login with Local"
-
Enter in sample credentials from
static/fixtures/connectors.json:email: elroy77@example.com password: bones -
Observe user information in example app.
Example CLI
TODO