From 86e79f41ef75e621b69588ee1e44808d7b344d44 Mon Sep 17 00:00:00 2001 From: hackerman <3372410+aeneasr@users.noreply.github.com> Date: Tue, 4 Aug 2020 17:06:19 +0200 Subject: [PATCH] docs: add session hook to ssi guide --- ...n-with-github-google-facebook-linkedin.mdx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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 56bd43ccdce6..b1b9f56703fe 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 @@ -16,6 +16,25 @@ Run the [Quickstart](../quickstart.mdx) with Docker Compose: $ make quickstart ``` +:::info + +It is very important to add the "session" hook to the after oidc registration +hooks. Otherwise your users need to use the login flow again to be able to get a +session. + +```yaml title="path/to/my/kratos/config.yml" +# $ kratos -c path/to/my/kratos/config.yml serve +selfservice: + flows: + registration: + after: + oidc: + hooks: + - hook: session +``` + +::: + ## GitHub