Skip to content
Merged
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions docs/hydra/guides/oauth2-webhooks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,13 @@ You cannot override the token subject.

:::

### Add custom claims to top level

By default, all custom claims are mirrored under the `ext` claim in the token.

To flatten custom claims directly into the top level token instead of nesting them under `ext`, use the following
[configuration](../../oauth2-oidc/jwt-access-token#adding-custom-claims-to-top-level).

### Refresh token

If a webhook for `refresh_token` grant type fails with a non-graceful result, the refresh flow will fail and the supplied
Expand Down
2 changes: 2 additions & 0 deletions docs/oauth2-oidc/jwt-access-token.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ Which results in the following access token:
}
```

### Add custom claims to top level

If you want `some_custom_claim` to be added to the top level (instead of a nested level) in the access token, you need to modify
the `/oauth2/allowed_top_level_claims` configuration:

Expand Down
Loading