-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Context
Currently, Themis can only read in simple claim values from parameters.
For example, today you can tell Themis to "read in the value for this claim from the parameters" like so in config:
claims:
mac_claim:
parameter: mac
so when requesting a JWT
curl http://themis/issue?mac=1122334455566
you will get a JWT with the relevant claim:
mac_claim:112233445566
Task
Now, say we want set the value of a claim called "human" to be something like:
{
"age": 45
"names: ["Awesome", "Themis"]
}
To do so, the config would stay the same:
claims
human:
parameter: human
and on request (subject to change - more experimenting needed)
curl http:themis/issue?human.age=45&human.names=Awesome&human.names=Themis
a claim would be provided like so:
human:
age: 45
names: ["Awesome","Themis"]
Notes:
- From discussions with teammates, it seems like it will be less of an anti-pattern to keep this change localized to parameters and not HTTP headers.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request