Files
Akshay Gaikwad 2a0354dbb6 Added mapper configs for known OIdC providers
- These mapper configs are prefilled in the UI automatically.
- Removed description from required in Kratos identity schema.
2022-05-20 12:18:12 +05:30

15 lines
465 B
Jsonnet

// scopes: email
// Issuer Url: https://www.facebook.com
local claims = std.extVar('claims');
{
identity: {
traits: {
// The email might be empty if the user hasn't granted permissions for the email scope.
[if "email" in claims then "email" else null]: claims.email,
[if "given_name" in claims then "first_name" else null]: claims.given_name,
[if "family_name" in claims then "last_name" else null]: claims.family_name,
},
},
}