Support to add objects (primitive and collection) as claim in token pa…#289
Support to add objects (primitive and collection) as claim in token pa…#289complanboy2 wants to merge 0 commit intoauth0:masterfrom
Conversation
|
@lbalmaceda @martinoconnor Please review at your free time. |
|
The added A reasonable compromise may be to accept only primitive wrapper types, |
Hi @martinoconnor , thank you for the reivew. It helped fixing it better. Agree, type safety would be an issue if consumer passes Map of custom objects. Updated the code to warn (throwing IllegalArugment) in that case. This change supports Map and/or Collection of objects of specified type/array type only. Restricted the checks to the minimal. Please review the updated code when you have time. |
|
Hello, Adding this feature would allow me to migrate from JWT 2 to JWT 3 as one of the claims we use is a Map and that cannot be changed. Is anything pending here? |
Hi @ornom0n , I'm waiting on review, once the review is done, we are good to merge. |
|
Any hope for getting this reviewed and also please check, #297 as well. |
…yload
As requested @gustavoamigo we are giving support to add objects if primitive and collection types as claim in token payload.
Followed the suggestion by @lbalmaceda to make this change.
#164 (comment)