Skip to content

[req] Allow json pointers when specifying a user claim #180

@taki-mekhalfa

Description

@taki-mekhalfa

Hello,
Is it possible to allow for JSON pointers when specifying a user_claim in JWT roles?
In some cases, the user is uniquely identified by a non root attribute, as for the following example:

{
  "iat": 1629710930,
  "jti": "1a418f37-4358-4648-b41f-006e62ce0b87",
  "exp": 1629718130,
  "scope": "public",
  "user": {
     "email": "takiedd.mekhalfa@gmail.com",
     "full_name": "Taki Eddine MEKHALFA",
   }
}

It would be great if we could do user_claime="/user/email".

I would be happy to work on this feature if you think it can be done without breaking something else.

Thank you,
Taki

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions