jolly-tiger-57705
04/12/2023, 2:09 PMphone
to appear in the identity? I tried user.phonenumbers.read
(./auth/userinfo.email
, ./auth/userinfo.profile
, openid
are already enabled and work fine). oidc.google.jsonnet
looks like this:
local claims = {
email_verified: false
} + std.extVar('claims');
{
identity: {
traits: {
[if "email" in claims && claims.email_verified then "email" else null]: claims.email,
// additional claims
// please also see the `Google specific claims`
name:{
first: claims.given_name,
last: claims.family_name,
},
[if "phone_number" in claims && claims.phone_number_verified then "phone" else null]: claims.phone_number,
},
},
}