mirror of
https://github.com/paralus/paralus.git
synced 2026-08-20 20:06:19 +00:00
- These mapper configs are prefilled in the UI automatically. - Removed description from required in Kratos identity schema.
17 lines
438 B
Jsonnet
17 lines
438 B
Jsonnet
// scopes: email, profile
|
|
// Issuer Url: https://accounts.google.com
|
|
|
|
local claims = {
|
|
email_verified: true
|
|
} + std.extVar('claims');
|
|
|
|
{
|
|
identity: {
|
|
traits: {
|
|
[if "email" in claims && claims.email_verified 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,
|
|
},
|
|
},
|
|
}
|