fierce-army-43735
04/19/2023, 2:42 PMemail_verified
with the callback or it is not right matched inside kratos. So every attempt to login with LinkedIn and the jsonnet snippet from the docs fails. Are you aware of this? Is this a known bug?magnificent-energy-493
fierce-army-43735
04/20/2023, 7:04 AMlocal claims = {
email_verified: false,
} + std.extVar('claims');
{
identity: {
traits: {
[if 'email' in claims && claims.email_verified then 'email' else null]: claims.email,
},
},
}
My LinkedIn config looks like this:
- id: linkedin
provider: linkedin
client_id: CLIENT_ID
client_secret: CLIENT_SECRET
mapper_url: file:///etc/config/kratos/oidc.linkedin.jsonnet
scope:
- r_emailaddress
- r_liteprofile
If I debug std.extVar('claims');
inside the data mapper, I get only the following data:
"email": "EMAIL",
"given_name": "GIVEN_NAME",
"iss": "<https://login.linkedin.com/>",
"last_name": "LAST_NAME",
"picture": "PICTURE_URL",
"sub": "AAAAAA-BBB"
Is it possible that email_verified
is missing to pass here?
https://github.com/ory/kratos/blob/5de6bf46aba6c13f927ef1c4c425322a34063ca9/selfservice/strategy/oidc/provider_linkedin.go#L188fierce-army-43735
04/21/2023, 10:14 AM