Reputation: 1434
Could the ID for a user be retrieved to be sent as a SAML attribute to a Client?
Thank you.
Upvotes: 1
Views: 913
Reputation: 51453
I have not work with SAML before but I think that what you want can be done by:
[Create]
;Javascript Mapper
;user.id
As pointed out by @Jan Garaj in the comments:
Script for Javascript Mapper is (already/still) deprecated feature and it may be removed in the further Keycloak release.
You can use a User Property Mapper
:
[Create]
;User Property;
id
Upvotes: 2