Skip to content

Commit

Permalink
docs: add session hook to ssi guide (#623)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Aug 4, 2020
1 parent 0c4222c commit 1bbed39
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/docs/guides/sign-in-with-github-google-facebook-linkedin.mdx
Expand Up @@ -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

<iframe width="560" height="315" src="https://www.youtube.com/embed/Hz_dP5c_qvc" frameborder="0" allowfullscreen />
Expand Down

0 comments on commit 1bbed39

Please sign in to comment.