-
Notifications
You must be signed in to change notification settings - Fork 43
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 quick seach jwk by kid #64
Comments
If the community thinks the work is worthwhile, I can give it a try. |
In my view, such optimization is not very useful. JWKS is very small with only a few "kid" in general. If you can proof to me that there are many production JWKS with large amount of |
@qiwzhang And I think this optimisation should be very simple. |
I see. It makes sense. Please go ahead. |
Now we will try to iterate all the jwks to find a matched jwk and then verify it. Can we create a hash table based on the
kid
? And ifkid
of jwt is not empty, we can try a quick search first before the iteration?The text was updated successfully, but these errors were encountered: