Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dex
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
dex
Commits
abc1d365
Commit
abc1d365
authored
Aug 28, 2015
by
Bobby Rullo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/static: various changes to fix examples
parent
8fc076af
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
README.md
examples/README.md
+8
-5
connectors.json.sample
static/fixtures/connectors.json.sample
+0
-2
users.json.sample
static/fixtures/users.json.sample
+2
-2
No files found.
examples/README.md
View file @
abc1d365
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.
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
...
...
@@ -14,9 +15,11 @@ This section is required for both the Example App and the Example CLI.
./build
```
1.
Copy
`static/fixtures/connectors.json.sample`
1.
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
```
1.
Run dex_worker in local mode.
...
...
@@ -30,14 +33,14 @@ This section is required for both the Example App and the Example CLI.
1.
Build and run example app webserver, pointing the discovery URL to local Dex, and
supplying the client information from
`./static/fixtures/clients.json`
into the flags.
```
./bin/
app --client-id=XXX --client-secret=secrete --discovery=http://127.0.0.1:5556
./bin/
example-app --client-id=XXX --client-secret=secrete --discovery=http://127.0.0.1:5556 &
```
1.
Navigate browser to
`http://localhost:5555`
and click "login" link
1.
Click "Login with Local"
1.
Enter in sample credentials from
`static/fixtures/connectors.json`
:
```
user: elroy77
email: elroy77@example.com
password: bones
```
1.
Observe user information in example app.
...
...
static/fixtures/connectors.json.sample
View file @
abc1d365
...
...
@@ -9,8 +9,6 @@
},
{
"userId":"penny",
"name":"Penny",
"email":"penny@example.com",
"passwordPlaintext": "kibble"
}
]
...
...
static/fixtures/users.json.sample
View file @
abc1d365
...
...
@@ -2,12 +2,12 @@
{
"user":{
"id": "elroy-id",
"
name": "elroy77
",
"
email": "elroy77@example.com
",
"displayName": "Elroy Jonez"
},
"remoteIdentities": [
{
"connectorI
D
": "local",
"connectorI
d
": "local",
"id": "elroy-id"
}
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment