[keycloak-user] How to escape dot symbol in Token Claim Name

Alexander Ionov orlicus at gmail.com
Thu Nov 23 03:32:49 EST 2017


When specifying Token Claim Name in a mapper, user can write claim name in
dot notation in order to create nested JSON objects.
The problem is, that I should do completley the opposite. I need a token
name that looks like "http://domain.name/claims/customer_number".
Keycloak sees the dot in the name and creates the following claim:
  "http://domain": {
    "name/claims/customer_number": "value"

Is there any way to escape this dot in the claim name?
I've tried the backslash character but it didn't work.
And I didn't find the information about this anywhere.


More information about the keycloak-user mailing list