Skip to content
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 extraction of non-string claims #95

Open
JoshMcCullough opened this issue May 3, 2023 · 2 comments
Open

Support extraction of non-string claims #95

JoshMcCullough opened this issue May 3, 2023 · 2 comments

Comments

@JoshMcCullough
Copy link
Contributor

As indicated in the README:

Please note that number, boolean, array, and object claims are not supported at this time -- only string claims are supported. An error will be thrown if you attempt to extract a non-string claim.

We should support at least number and boolean claims. Supporting object and array claims is more difficult, but we should support extracting a claim from an array or object e.g. my_claim_array[0] or my_claim_obj[some_key][some_other_key].

@sscotti
Copy link

sscotti commented May 6, 2023

In regards to that, I take it that if a claim is a json_encoded string it at least won't throw an error ?

@farzadam
Copy link

extraction of claims is very easy using njs module, no matter if their type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants