Skip to content

Commit

Permalink
docs: update five minute tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Dec 26, 2016
1 parent 2f31b25 commit e3cd51c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
6 changes: 5 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
vendor/
vendor/
.idea/
.vagrant/
docs/
dist/
2 changes: 1 addition & 1 deletion docs/oauth2.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ app (sometimes referred to as *consent endpoint*). Once the consent app authenti
the user back to Hydra, passing along a JSON Web Token including information for Hydra to process. In abstract,
the consent flow looks like this:

![](../images/consent.png)
![Consent Flow](/images/consent.png)

1. A *client* application (app in browser in laptop) requests an access token from a resource owner:
`https://hydra.myapp.com/oauth2/auth?client_id=c3b49cf0-88e4-4faa-9489-28d5b8957858&response_type=code&scope=core+hydra&state=vboeidlizlxrywkwlsgeggff&nonce=tedgziijemvninkuotcuuiof`.
Expand Down
10 changes: 5 additions & 5 deletions docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ In this example, you will set up Hydra, a Postgres instance and an exemplary ide

<img alt="Running the example" align="right" width="35%" src="images/run-the-example.gif">

Install the [CLI and Docker](https://github.com/ory-am/hydra#installation). Make sure you install Docker Compose as well.
Install [Docker and Docker Compose](https://github.com/ory-am/hydra#installation) and either clone the Hydra git repository,
download [this zip file](https://github.com/ory-am/hydra/archive/master.zip) or use `go get github.com/ory-am/hydra` if you have Go installed on you system.

We will use a dummy password as the system secret: `SYSTEM_SECRET=passwordtutorialpasswordtutorial`.
Use a very secure secret in production.
We will use a dummy password as the system secret: `SYSTEM_SECRET=passwordtutorialpasswordtutorial`. Use a very secure secret in production.

```
$ go get github.com/ory-am/hydra
$ cd $GOPATH/src/github.com/ory-am/hydra
$ git clone https://github.com/ory-am/hydra.git
$ cd hydra
$ SYSTEM_SECRET=passwordtutorial DOCKER_IP=localhost docker-compose up --build
Starting hydra_mysqld_1
Starting hydra_postgresd_1
Expand Down

0 comments on commit e3cd51c

Please sign in to comment.