Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support nested json claim mapping #38

Open
colcek opened this issue Feb 15, 2023 · 2 comments · May be fixed by #39
Open

Support nested json claim mapping #38

colcek opened this issue Feb 15, 2023 · 2 comments · May be fixed by #39

Comments

@colcek
Copy link
Contributor

colcek commented Feb 15, 2023

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 colcek linked a pull request Feb 15, 2023 that will close this issue
@colcek
Copy link
Contributor Author

colcek commented May 1, 2023

Hey @SimonSchneider, are you still maintaining the repo?

@SimonSchneider
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants