-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support reading in more complex values from query parameters #61
Comments
This would really be better as an HTTP entity body:
|
So the HTTP entity body would represent the set of claims that needs to be appended to the set of claims Themis builds for a token. If that's the case, one option is making this the source of highest precedence (that is, body > header > parameter for value overriding). I might have the order for header and parameter flipped here... |
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:
so when requesting a JWT
curl http://themis/issue?mac=1122334455566
you will get a JWT with the relevant claim:
Task
Now, say we want set the value of a claim called "human" to be something like:
To do so, the config would stay the same:
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:
Notes:
The text was updated successfully, but these errors were encountered: