From 9f2b22e27dc787ff3ec3f6ad2aad957416685e2f Mon Sep 17 00:00:00 2001 From: Vincent Date: Wed, 6 Jan 2021 18:20:02 +0100 Subject: [PATCH 1/3] docs: fix formatting The :::note::: consumed the whole rest of the page. --- .../guides/sign-in-with-github-google-facebook-linkedin.mdx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/docs/guides/sign-in-with-github-google-facebook-linkedin.mdx b/docs/docs/guides/sign-in-with-github-google-facebook-linkedin.mdx index 4c9b4677fefe..a10e176588f4 100644 --- a/docs/docs/guides/sign-in-with-github-google-facebook-linkedin.mdx +++ b/docs/docs/guides/sign-in-with-github-google-facebook-linkedin.mdx @@ -237,12 +237,14 @@ The pattern of this URL is: http(s)://:/self-service/methods/oidc/callback/ ``` -:::note While you can use +:::note +While you can use [GitLab as an OIDC identity provider](https://docs.gitlab.com/ee/integration/openid_connect_provider.html), GitLab only returns the sub and sub_legacy claims in the ID token. Therefore, ORY Kratos makes a request to [GitLab's /oauth/userinfo API](https://gitlab.com/oauth/userinfo) and adds the -user info to `std.extVar('claims')`. ::: +user info to `std.extVar('claims')`. +::: ```json title="contrib/quickstart/kratos/email-password/oidc.gitlab.jsonnet" local claims = { From 1a34bf825ddfde4af23baf261c0cb7cc991a5b10 Mon Sep 17 00:00:00 2001 From: Vincent Date: Thu, 7 Jan 2021 11:10:13 +0100 Subject: [PATCH 2/3] Update docs/docs/guides/sign-in-with-github-google-facebook-linkedin.mdx Co-authored-by: Patrik --- .../docs/guides/sign-in-with-github-google-facebook-linkedin.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/docs/guides/sign-in-with-github-google-facebook-linkedin.mdx b/docs/docs/guides/sign-in-with-github-google-facebook-linkedin.mdx index a10e176588f4..61febf0d050b 100644 --- a/docs/docs/guides/sign-in-with-github-google-facebook-linkedin.mdx +++ b/docs/docs/guides/sign-in-with-github-google-facebook-linkedin.mdx @@ -244,6 +244,7 @@ GitLab only returns the sub and sub_legacy claims in the ID token. Therefore, ORY Kratos makes a request to [GitLab's /oauth/userinfo API](https://gitlab.com/oauth/userinfo) and adds the user info to `std.extVar('claims')`. + ::: ```json title="contrib/quickstart/kratos/email-password/oidc.gitlab.jsonnet" From c4fbf6584111309b576b4814fc7ee1fe75298786 Mon Sep 17 00:00:00 2001 From: Vincent Date: Thu, 7 Jan 2021 11:10:23 +0100 Subject: [PATCH 3/3] Update docs/docs/guides/sign-in-with-github-google-facebook-linkedin.mdx Co-authored-by: Patrik --- .../guides/sign-in-with-github-google-facebook-linkedin.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/docs/guides/sign-in-with-github-google-facebook-linkedin.mdx b/docs/docs/guides/sign-in-with-github-google-facebook-linkedin.mdx index 61febf0d050b..98c624482dcd 100644 --- a/docs/docs/guides/sign-in-with-github-google-facebook-linkedin.mdx +++ b/docs/docs/guides/sign-in-with-github-google-facebook-linkedin.mdx @@ -237,7 +237,8 @@ The pattern of this URL is: http(s)://:/self-service/methods/oidc/callback/ ``` -:::note +:::note + While you can use [GitLab as an OIDC identity provider](https://docs.gitlab.com/ee/integration/openid_connect_provider.html), GitLab only returns the sub and sub_legacy claims in the ID token. Therefore,