oidc-server-mock icon indicating copy to clipboard operation
oidc-server-mock copied to clipboard

Include claims into the JWT

Open svituz opened this issue 5 months ago • 1 comments

Hi, is it possible to include claims directly in the JWT. I have a list of claims for users:

  [{
    "SubjectId": "user-id",
    "Username": "user",
    "Password": "password",
    "Claims": [
      {
        "Type": "given_name",
        "Value": "User",
        "ValueType": "string"
      },
      {
        "Type": "preferred_username",
        "Value": "[email protected]",
        "ValueType": "string"
      },
      {
        "Type": "email",
        "Value": "[email protected]",
        "ValueType": "string"
      }
    ]

I'd like to configure the server so that the claims are in the JWT when I decode it. Is it possible to do that?

svituz avatar Sep 11 '24 16:09 svituz