rough-musician-16785
08/10/2023, 9:42 PMidentity.traits.name.first
should be used as a given_name
claim if the profile
scope is requested. But when using kratos-selfservice-ui-node
as my login and consent app this did not happen (i requested the profile
scope but no given_name
was present in the id_token). Would I need to patch kratos-selfservice-ui-node
if i wanted to mimic the linked documentation?rough-musician-16785
08/10/2023, 9:51 PM+ if (grantScopes.indexOf("profile") > -1) {
+ id_token.given_name = identity.traits["name"]["first"] || ""
+ id_token.last_name = identity.traits["name"]["last"] || ""
+ }
but just want to make sure i am understanding the architecture correctly, that the idea is that it is the consent app that gathers information about the user as well as sets fields in an id_tokenthousands-megabyte-94914
08/16/2023, 7:12 PMname
and email
scopes. Did you have to use the kratos sdk in the consent app to retrieve the identity manually?rough-musician-16785
08/16/2023, 7:43 PMrough-musician-16785
08/16/2023, 7:45 PMrough-musician-16785
08/16/2023, 8:06 PMthousands-megabyte-94914
08/17/2023, 8:35 PM