Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: updated hydra version in the tutorial to v0.10.0-alpha.8 and consent app to v0.10.0-alpha.9 #625

Merged
merged 4 commits into from
Oct 21, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,19 @@ $ export SYSTEM_SECRET=this_needs_to_be_the_same_always_and_also_very_$3cuR3-._
$ export DATABASE_URL=postgres://hydra:secret@postgres:5432/hydra?sslmode=disable

# Before starting, let's pull the latest ORY Hydra tag from docker.
$ docker pull oryd/hydra:v0.9.12
$ docker pull oryd/hydra:v0.10.0-alpha.8

# This command will show you all the environment variables that you can set. Read this carefully.
# It is the equivalent to `hydra help host`.
$ docker run -it --entrypoint hydra oryd/hydra:v0.9.12 help host
$ docker run -it --entrypoint hydra oryd/hydra:v0.10.0-alpha.8 help host

Starts all HTTP/2 APIs and connects to a database backend.
[...]

# ORY Hydra does not do magic, it requires concious decisions, for example, when running SQL migrations, which is required
# when installing a new version of ORY Hydra, or upgrading an existing installation.
# It is the equivalent to `hydra migrate sql postgres://hydra:secret@postgres:5432/hydra?sslmode=disable`
$ docker run --link ory-hydra-example--postgres:postgres -it --entrypoint hydra oryd/hydra:v0.9.12 migrate sql $DATABASE_URL
$ docker run --link ory-hydra-example--postgres:postgres -it --entrypoint hydra oryd/hydra:v0.10.0-alpha.8 migrate sql $DATABASE_URL

Applying `ladon` SQL migrations...
Applied 3 `ladon` SQL migrations.
Expand Down Expand Up @@ -134,7 +134,7 @@ ORY Hydra can be managed using the Hydra Command Line Interface (CLI), which is
see the available commands, run:

```
$ docker run -it --entrypoint hydra oryd/hydra:v0.9.12 help
$ docker run -it --entrypoint hydra oryd/hydra:v0.10.0-alpha.8 help
Hydra is a cloud native high throughput OAuth2 and OpenID Connect provider

Usage:
Expand Down Expand Up @@ -205,7 +205,7 @@ Next we need to connect to ORY Hydra and set up OAuth 2.0 Clients and access con
```
# We run a shell with ORY Hydra installed. We also expose port 4445 which we will use later to perform
# the authorize code flow. Also, we connect this container to our ORY Hydra instance.
$ docker run -p 9010:4445 --link ory-hydra-example--hydra:hydra -it --entrypoint "/bin/sh" oryd/hydra:v0.9.12
$ docker run -p 9010:4445 --link ory-hydra-example--hydra:hydra -it --entrypoint "/bin/sh" oryd/hydra:v0.10.0-alpha.8

# Let's connect to the ORY Hydra cluster
$ hydra connect
Expand Down Expand Up @@ -249,7 +249,7 @@ $ hydra clients create --skip-tls-verify \
--name "Consent App Client" \
--grant-types client_credentials \
--response-types token \
--allowed-scopes hydra.consent*
--allowed-scopes hydra.consent
```

Let's dive into the arguments:
Expand Down Expand Up @@ -302,7 +302,7 @@ $ docker run -d \
-e HYDRA_CLIENT_SECRET=consent-secret \
-e HYDRA_URL=https://hydra:4444 \
-e NODE_TLS_REJECT_UNAUTHORIZED=0 \
oryd/hydra-consent-app-express:v0.10.0-alpha.7
oryd/hydra-consent-app-express:v0.10.0-alpha.9

# Let's check if it's running ok:
$ docker logs ory-hydra-example--consent
Expand All @@ -317,7 +317,7 @@ from the ORY Hydra docker container (`CONSENT_URL=http://localhost:9020/consent`
* `NODE_TLS_REJECT_UNAUTHORIZED=0` disables TLS verification, because we are using self-signed certificates.

Now close this shell and return to the one which is connected to the ORY Hydra bash container
(`docker run -p 9010:4445 --link ory-hydra-example--hydra:hydra -it --entrypoint "/bin/sh" oryd/hydra:v0.9.12`).
(`docker run -p 9010:4445 --link ory-hydra-example--hydra:hydra -it --entrypoint "/bin/sh" oryd/hydra:v0.10.0-alpha.8`).

## Perform OAuth 2.0 Flow

Expand Down