apigee / iloveapis2015-jwt-jwe-jws

Apache License 2.0
30 stars 36 forks source link

Allow custom claims to be something other than a string #7

Open raysuelzer opened 7 years ago

raysuelzer commented 7 years ago

There are cases where a claim value will be an object. Consider the following use case:

A custom claims object is added for {response.content}

{response.content}

This content is a JSON object of claims that is retrieved from another service. Currently, this will be treated as a string instead of being nested as JSON.

There are multiple ways to solve this, but I wanted to point out that this is a pretty significant shortfall of the service.