Repository navigation
Replies: 1 comment
|
Ok got it. In the IdP "Session Note Mapper" the Token "Key" is the name of the source claim in the Token from the IdP. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Quote
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to store a claim from a upstream IdP token as session note (User Session Note Mapper) and write this claim into the access token towards the client.
Background:
Reason for that is, that I don't want to store this sensitive information on the user object in the keycloak DB. Otherwise I could use a mapper type "Attribute Importer". Furthermore, the users are "Read only" beacuse they are also fetched from a LDAP Directory.
So as I understand the "User Session Note Mapper" is suitable for this use case. But it's not working, the desired claim is missing in the token for the client. I'm not sure if I do it the right way. Here my approach:
Is that the way the feature should work for the described usecase?
In the IdP Mapper I'm not really sure how this should be used. My understanding is:
Keycloak Version: 26.4.1
Many thanks for any help.
All reactions