-
Notifications
You must be signed in to change notification settings - Fork 1k
Ability to have several public keys for JWT signature checking #544
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
Conversation
Yeah indeed, that is what I meant. I'm not sure how we should solve this. |
I'm not sure either, I looked for solutions in PHP's documentation but didn't find anything about mixed types. I presume it is a bad pattern 😁 The best solution I see is this one:
Plus, there is already this check in if (!$secret) {
return array();
} Like this, we can get rid of the token deconstruction and early checks in |
Hi @mevdschee, I just pushed the updated code. |
Looks good to me.. I'll merge it soon and do a major version bump as I feel we may need to break BC in the middleware.. Thank you for your work! |
You're welcome! The version bump sounds good to me as I changed a function signature. |
@sebj54 I would be very thankful if you would review/test the changes. |
Thank you for your feedback |
Here it is, as discussed in #540 :)
I see what you meant, the commented type in the function declaration is not pretty.
Tell me what you think of it, I'll do the docs before the merge.