big-evening-36539
04/26/2023, 1:10 PMmagnificent-energy-493
I want to deactivate the account if abc@gmail.com gets deactivated, and if the account is linked with xyz@othermail.com, they can still be able to log in even though the account is deactivated (I believe)Hey @big-evening-36539 Are you sure? If the identity is deactivated you cant log in any more AFAICT. Or do you mean just the gmail account is deactivated - but that would not prevent login anyway đ¤
big-evening-36539
04/26/2023, 3:26 PMlocal claims = std.extVar('claims');
if ctx.identity.traits.email != claims.email then
error "provider must have matching email"
else
{
identity: {
traits: {
email: claims.email, // If email isn't set the Jsonnet snippet will fail with an error.
name: {
[if "given_name" in claims then "first" else null]: claims.given_name,
[if "family_name" in claims then "last" else null]: claims.family_name,
}
},
},
}
big-evening-36539
04/26/2023, 4:03 PMbefore settings
web hook?magnificent-energy-493