kjwt icon indicating copy to clipboard operation
kjwt copied to clipboard

How to add claim with nested structure?

Open Michal-Kucera opened this issue 2 years ago • 1 comments

Hello!

I'd love to generate a JWT with a nested structure, e.g.:

{
  "realm_access": {
    "roles": [
      "default-roles-my-realm",
      "offline_access",
      "uma_authorization"
    ]
  }
}

Could you please give me guidance on how to achieve this?

Cheers! Michal

Michal-Kucera avatar Jan 22 '23 13:01 Michal-Kucera

Any updates on this, I'd like to be able to do this as well, e.g.:

{
    "iss": "57246542-96fe-1a63-e053-0824d011072a",
    "iat": 1528407600,
    "exp": 1528408800,
    "aud": "appstoreconnect-v1",
    "scope": [
        "GET /v1/apps?filter[platform]=IOS"
    ]
}

vewert avatar Jun 12 '23 20:06 vewert