few-oyster-74399
01/28/2025, 10:34 AMbrief-egg-61061
01/28/2025, 10:34 AMbrief-egg-61061
01/28/2025, 10:34 AMjsonnet local claims = { email_verified: false, } + std.extVar('claims'); { identity: { traits: { [if 'email' in claims && claims.email_verified then 'email' else null]: claims.email, }, }, }
3. Provider-specific behavior: Some providers might have specific behaviors regarding claim inclusion. For instance, as mentioned in the [GitLab integration documentation](https://www.ory.sh/docs/kratos/social-signin/gitlab): "GitLab returns only the sub
and sub_legacy
claims in the id_token
. Ory makes a request to GitLab's /oauth/userinfo API and adds the user info to std.extVar('claims')
." 4. Webhook configuration: If you're using webhooks, there might be an issue with how the claims are being processed. As discussed in a [GitHub issue](https://github.com/ory/hydra/issues/3879), there was a problem where the email claim disappeared after enabling a webhook. To troubleshoot this issue, you could: 1. Check if the email is verified for the user in question. 2. Review your data mapping configuration to ensure it's not inadvertently filtering out the email claim. 3. Verify that your provider is correctly configured to return the email claim. 4. If you're using webhooks, ensure they're not interfering with the email claim. If none of these solutions work, you may need to investigate further or reach out to Ory support for assistance.few-oyster-74399
01/28/2025, 10:35 AMbrief-egg-61061
01/28/2025, 10:35 AMbrief-egg-61061
01/28/2025, 10:35 AM