-
-
Notifications
You must be signed in to change notification settings - Fork 117
Open
Description
Version(s) affected
3.3.X
Description
I am using version 4.1.0 but, if you look at older versions, 3.3.X already had this issue.
Problem is with key_ops -> there are two different manipulations.
- as string in
\Jose\Component\KeyManagement\Analyzer\UsageAnalyzer::analyzeit is expected herekey_opsis string and if not in array of given ops it addd message to bag (but it failed insprintfwithArray to string conversionerror) - as array in
\Jose\Component\Core\JWKSet::canKeyBeUsedForintroduced in 3.3.X version
key_ops needs to be as array according to https://www.rfc-editor.org/rfc/rfc7517.html#section-4.3
Its value is an array of key operation values
How to reproduce
This issue could be reproduce when symfony framework.profiler.collect is set to true (if collect is false, obviously analyzer is turned off)
Possible Solution
changing \Jose\Component\KeyManagement\Analyzer\UsageAnalyzer::analyze to work with key_ops as array
Additional Context
No response
Metadata
Metadata
Assignees
Labels
No labels