silly-waitress-13124
12/21/2022, 8:29 AMmagnificent-energy-493
Within my identity I can see that the raw data ist set properly (email, group and name was set properly.It seems the data is mapping correctly. Can you share your Jsonnet for mapping the data and maybe a redacted example identity from your setup?
The name and the group was missing.What do you mean by that, missing from where? I thought it already got added to the identity in the OIDC step?
silly-waitress-13124
12/21/2022, 9:20 AMlocal claims = {
email_verified: false,
group: 'admin'
} + std.extVar('claims');
{
identity: {
traits: {
name: claims.name,
group: claims.group,
[if 'email' in claims && claims.email_verified then 'email' else null]: claims.email,
},
},
}
the raw data:
{
"email": "my@mail.address",
"group": "admin",
"name": "My Name"
}
What I mean with there is no name or group:
If I try to login and I haven't approved the consent: I can login. But name and group aren't set. The app didn't find the claims in the response. It shows the provided claims in the logs, and there are no group or name.magnificent-energy-493
silly-waitress-13124
12/21/2022, 11:11 AMmagnificent-energy-493
silly-waitress-13124
12/21/2022, 11:32 AMsilly-waitress-13124
12/22/2022, 6:54 AMsilly-waitress-13124
12/22/2022, 6:58 AM{
"amr": [
"oidc"
],
"at_hash": "<redacted>",
"aud": [
"<redacted>"
],
"auth_time": 1671446424,
"email": "my@mail.address",
"email_verified": true,
"exp": 1671695459,
"iat": 1671691859,
"iss": "https://<redacted>",
"jti": "<redacted>",
"nonce": "<redacted>",
"rat": <redacted>,
"sid": "<redacted>",
"sub": "<redacted>"
}
But I would expect something like:
{
...
"email": "my@mail.address",
"email_verified": true,
"group": "<group>",
"name": "My Name",
...
}
silly-waitress-13124
12/22/2022, 8:05 AMmagnificent-energy-493
"metadata_admin": {
"groups": {
"type": "string",
"title": "Group",
"default": "base",
}
}
The basis is basically this model:
https://www.ory.sh/docs/security-model
It would help to know more about your apps in order to say if this is possible.
The integration is with lets say ArgoCd as example, like so:
https://argo-cd.readthedocs.io/en/stable/operator-manual/user-management/#existing-oidc-provider
?silly-waitress-13124
12/24/2022, 7:23 AMsilly-waitress-13124
12/24/2022, 7:25 AMsilly-waitress-13124
12/25/2022, 7:15 AM