[keycloak-user] Is it possible to map 'sub' claim of external identity provider to attribute

orivat orivat at janua.fr
Sat Apr 7 13:21:23 EDT 2018





Envoyé depuis mon smartphone Samsung Galaxy.
-------- Message d'origine --------De : Rens Verhage <Rens.Verhage at topicus.nl> Date : 07/04/2018  15:52  (GMT+01:00) À : keycloak-user at lists.jboss.org Objet : [keycloak-user] Is it possible to map 'sub' claim of external identity provider to attribute 
I have configured an external OIDC identity provider and now want to add a mapper that maps the OIDC sub (subject) claim to a user attribute:


Mapper type: Attribute Importer
Claim: sub
User Attribute Name: test


On my client I have added a mapper that takes this attribute and inserts it into a claim:


Mapper type: User Attribute
User Attribute: test
Token Claim Name: test
Claim JSON Type: String


On login, I expect to see the claim ‘test’ in the other claims collection, but the collection remains empty. Am I doing something wrong or is mapping of sub not supported?


Rens


_______________________________________________
keycloak-user mailing list
keycloak-user at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user


More information about the keycloak-user mailing list