From 203486563639773774f604a3a17a94a009bfb0d0 Mon Sep 17 00:00:00 2001 From: vinckr Date: Wed, 27 Jan 2021 12:31:04 +0100 Subject: [PATCH 1/7] docs: quickstart config --- docs/docs/5min-tutorial.mdx | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/docs/docs/5min-tutorial.mdx b/docs/docs/5min-tutorial.mdx index 52f3a0c7720..3a90e6b7a8f 100644 --- a/docs/docs/5min-tutorial.mdx +++ b/docs/docs/5min-tutorial.mdx @@ -181,3 +181,44 @@ order to avoid conflicts with other tutorials from this guide: $ docker-compose -f quickstart.yml kill $ docker-compose -f quickstart.yml rm -f -v ``` + + +### Quickstart Configuration + +In this tutorial we use a simplified configuration. +You can find it in `contrib/quickstart/5-min/hydra.yml`. +The configuration gets loaded in docker-compose as specified in the +`quickstart.yml`. + +```yml +serve: +cookies: + same_site_mode: Lax + # cookies are only set when the domain in the URL of the browser matches the domain of the cookie + +urls: +self: + issuer: http://127.0.0.1:4444 +consent: http://127.0.0.1:3000/consent +login: http://127.0.0.1:3000/login +logout: http://127.0.0.1:3000/logout + +secrets: +system: + - youReallyNeedToChangeThis + +oidc: +# Configures OpenID Connect features. +subject_identifiers: + # A list of algorithms to enable. + supported_types: + - pairwise + - public + pairwise: + # Configures the pairwise algorithm. + salt: youReallyNeedToChangeThis +``` + +Have a look at the [reference configuration](./reference/configuration.md) for +further information. + From 4a64e2ce2c2c648b111425924816e6e0fd278979 Mon Sep 17 00:00:00 2001 From: vinckr Date: Wed, 27 Jan 2021 16:31:50 +0100 Subject: [PATCH 2/7] chore: format --- docs/docs/5min-tutorial.mdx | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/docs/docs/5min-tutorial.mdx b/docs/docs/5min-tutorial.mdx index 3a90e6b7a8f..bd2fe2c4c4d 100644 --- a/docs/docs/5min-tutorial.mdx +++ b/docs/docs/5min-tutorial.mdx @@ -182,7 +182,6 @@ $ docker-compose -f quickstart.yml kill $ docker-compose -f quickstart.yml rm -f -v ``` - ### Quickstart Configuration In this tutorial we use a simplified configuration. @@ -193,32 +192,31 @@ The configuration gets loaded in docker-compose as specified in the ```yml serve: cookies: - same_site_mode: Lax - # cookies are only set when the domain in the URL of the browser matches the domain of the cookie + same_site_mode: Lax + # cookies are only set when the domain in the URL of the browser matches the domain of the cookie urls: self: - issuer: http://127.0.0.1:4444 + issuer: http://127.0.0.1:4444 consent: http://127.0.0.1:3000/consent login: http://127.0.0.1:3000/login logout: http://127.0.0.1:3000/logout secrets: system: - - youReallyNeedToChangeThis + - youReallyNeedToChangeThis oidc: # Configures OpenID Connect features. subject_identifiers: - # A list of algorithms to enable. - supported_types: + # A list of algorithms to enable. + supported_types: - pairwise - public - pairwise: - # Configures the pairwise algorithm. - salt: youReallyNeedToChangeThis + pairwise: + # Configures the pairwise algorithm. + salt: youReallyNeedToChangeThis ``` Have a look at the [reference configuration](./reference/configuration.md) for further information. - From 4abf23a836656773c3f7402721dee18f11bf3ab6 Mon Sep 17 00:00:00 2001 From: vinckr Date: Fri, 29 Jan 2021 14:59:03 +0100 Subject: [PATCH 3/7] docs: added links --- docs/docs/5min-tutorial.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/docs/5min-tutorial.mdx b/docs/docs/5min-tutorial.mdx index bd2fe2c4c4d..324d6c8d9cc 100644 --- a/docs/docs/5min-tutorial.mdx +++ b/docs/docs/5min-tutorial.mdx @@ -185,11 +185,11 @@ $ docker-compose -f quickstart.yml rm -f -v ### Quickstart Configuration In this tutorial we use a simplified configuration. -You can find it in `contrib/quickstart/5-min/hydra.yml`. +You can find it in [`contrib/quickstart/5-min/hydra.yml`](https://github.com/ory/hydra/blob/master/contrib/quickstart/5-min/hydra.yml). The configuration gets loaded in docker-compose as specified in the -`quickstart.yml`. +[`quickstart.yml`](https://github.com/ory/hydra/blob/master/quickstart.yml). -```yml +```yml title="contrib/quickstart/5-min/hydra.yml" serve: cookies: same_site_mode: Lax @@ -219,4 +219,4 @@ subject_identifiers: ``` Have a look at the [reference configuration](./reference/configuration.md) for -further information. +further information on all possible configuration options. \ No newline at end of file From 6e6cdb063acdf5a2c51366c64f05ab7770788303 Mon Sep 17 00:00:00 2001 From: vinckr Date: Fri, 29 Jan 2021 15:06:14 +0100 Subject: [PATCH 4/7] chore: format --- docs/docs/5min-tutorial.mdx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/docs/5min-tutorial.mdx b/docs/docs/5min-tutorial.mdx index 324d6c8d9cc..b087449bfb2 100644 --- a/docs/docs/5min-tutorial.mdx +++ b/docs/docs/5min-tutorial.mdx @@ -185,7 +185,8 @@ $ docker-compose -f quickstart.yml rm -f -v ### Quickstart Configuration In this tutorial we use a simplified configuration. -You can find it in [`contrib/quickstart/5-min/hydra.yml`](https://github.com/ory/hydra/blob/master/contrib/quickstart/5-min/hydra.yml). +You can find it in +[`contrib/quickstart/5-min/hydra.yml`](https://github.com/ory/hydra/blob/master/contrib/quickstart/5-min/hydra.yml). The configuration gets loaded in docker-compose as specified in the [`quickstart.yml`](https://github.com/ory/hydra/blob/master/quickstart.yml). @@ -219,4 +220,4 @@ subject_identifiers: ``` Have a look at the [reference configuration](./reference/configuration.md) for -further information on all possible configuration options. \ No newline at end of file +further information on all possible configuration options. From 681232adadbefd05d256d66d852e27aaadcb20aa Mon Sep 17 00:00:00 2001 From: vinckr Date: Mon, 1 Feb 2021 11:11:35 +0100 Subject: [PATCH 5/7] docs: added CodeFromRemote --- docs/docs/5min-tutorial.mdx | 36 ++++++++---------------------------- 1 file changed, 8 insertions(+), 28 deletions(-) diff --git a/docs/docs/5min-tutorial.mdx b/docs/docs/5min-tutorial.mdx index b087449bfb2..dddb0dfb962 100644 --- a/docs/docs/5min-tutorial.mdx +++ b/docs/docs/5min-tutorial.mdx @@ -3,6 +3,8 @@ id: 5min-tutorial title: 5 Minute Tutorial --- +import CodeFromRemote from '@theme/CodeFromRemote' + This tutorial walks you through a quick setup of ORY Hydra, a PostgreSQL instance and an exemplary User Login & Consent App based on Docker Compose. You need to have the latest [Docker](https://www.docker.com) and @@ -190,34 +192,12 @@ You can find it in The configuration gets loaded in docker-compose as specified in the [`quickstart.yml`](https://github.com/ory/hydra/blob/master/quickstart.yml). -```yml title="contrib/quickstart/5-min/hydra.yml" -serve: -cookies: - same_site_mode: Lax - # cookies are only set when the domain in the URL of the browser matches the domain of the cookie - -urls: -self: - issuer: http://127.0.0.1:4444 -consent: http://127.0.0.1:3000/consent -login: http://127.0.0.1:3000/login -logout: http://127.0.0.1:3000/logout - -secrets: -system: - - youReallyNeedToChangeThis - -oidc: -# Configures OpenID Connect features. -subject_identifiers: - # A list of algorithms to enable. - supported_types: - - pairwise - - public - pairwise: - # Configures the pairwise algorithm. - salt: youReallyNeedToChangeThis -``` + + + + Have a look at the [reference configuration](./reference/configuration.md) for further information on all possible configuration options. From 53b6478b01a29466b2daaba084e7d62f9d6ed993 Mon Sep 17 00:00:00 2001 From: vinckr Date: Mon, 1 Feb 2021 11:13:10 +0100 Subject: [PATCH 6/7] docs: changed versioned docs 1.9. --- .../version-v1.9/5min-tutorial.mdx | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/versioned_docs/version-v1.9/5min-tutorial.mdx b/docs/versioned_docs/version-v1.9/5min-tutorial.mdx index 52f3a0c7720..25678f2a5ad 100644 --- a/docs/versioned_docs/version-v1.9/5min-tutorial.mdx +++ b/docs/versioned_docs/version-v1.9/5min-tutorial.mdx @@ -3,6 +3,8 @@ id: 5min-tutorial title: 5 Minute Tutorial --- +import CodeFromRemote from '@theme/CodeFromRemote' + This tutorial walks you through a quick setup of ORY Hydra, a PostgreSQL instance and an exemplary User Login & Consent App based on Docker Compose. You need to have the latest [Docker](https://www.docker.com) and @@ -181,3 +183,21 @@ order to avoid conflicts with other tutorials from this guide: $ docker-compose -f quickstart.yml kill $ docker-compose -f quickstart.yml rm -f -v ``` + +### Quickstart Configuration + +In this tutorial we use a simplified configuration. +You can find it in +[`contrib/quickstart/5-min/hydra.yml`](https://github.com/ory/hydra/blob/master/contrib/quickstart/5-min/hydra.yml). +The configuration gets loaded in docker-compose as specified in the +[`quickstart.yml`](https://github.com/ory/hydra/blob/master/quickstart.yml). + + + + + + +Have a look at the [reference configuration](./reference/configuration.md) for +further information on all possible configuration options. \ No newline at end of file From 18ccb606afd09ee1f36da0b29addb2ebabdd3443 Mon Sep 17 00:00:00 2001 From: vinckr Date: Mon, 1 Feb 2021 11:13:53 +0100 Subject: [PATCH 7/7] chore: format --- docs/docs/5min-tutorial.mdx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/docs/docs/5min-tutorial.mdx b/docs/docs/5min-tutorial.mdx index dddb0dfb962..c4736667b75 100644 --- a/docs/docs/5min-tutorial.mdx +++ b/docs/docs/5min-tutorial.mdx @@ -192,12 +192,7 @@ You can find it in The configuration gets loaded in docker-compose as specified in the [`quickstart.yml`](https://github.com/ory/hydra/blob/master/quickstart.yml). - - - - + Have a look at the [reference configuration](./reference/configuration.md) for further information on all possible configuration options.