traefik-jwt-decode icon indicating copy to clipboard operation
traefik-jwt-decode copied to clipboard

Support nested json claim mapping

Open colcek opened this issue 2 years ago • 2 comments

Some IDPs such as Keycloak uses nested JSON claims such as realm_access or address. Here is the example:

{
   "realm_access":{
      "roles":[
         "offline_access",
         "default-roles-tcl",
         "uma_authorization"
      ]
   },
   "address":{
      "city":"City"
   }
}

It would be good to define mapping like realm_access.roles:x-user-roles or address.city:city to extract values from nested structs.

colcek avatar Feb 15 '23 12:02 colcek

Hey @SimonSchneider, are you still maintaining the repo?

colcek avatar May 01 '23 14:05 colcek

Sorry about not responding to this, it's been a stressful spring with other obligations. I've had this on my todo list since the initial issue but I've just not gotten around to it. I'll try to look into it during the week but after quick review it looks like a good idea to support nested claims.

I've had this project quite far down on my priority list as I don't use it myself or at my current company. But am happy to keep up with some slow and steady maintenance for the users of it.

SimonSchneider avatar May 01 '23 14:05 SimonSchneider