36
Views
6
Comments
[JWT] Complex Object as Custom Claim
Question
Forge component by João Almeida
10
Published on 20 Jul 2020

How do I pass complex JSON objects to the custom claims? Could you share some sample?

Rank: #174

Laxman Venkatesan wrote:

How do I pass complex JSON objects to the custom claims? Could you share some sample?

 Hi Laxman, you can't. The custom claims need to be in name/value pair format. One workaround could be serializing the complex object into JSON or base64, and add it as a custom claim.

 

Rank: #11210

Hi,

I have created a component which can be used to generate JWT from a complex object types instead of key value pair. Hope this helps!

ComplexJWT