frasertweedale / hs-jose

Haskell JOSE and JWT library
http://hackage.haskell.org/package/jose
Apache License 2.0
122 stars 46 forks source link

As a library user I want a more convenient way of filtering keys #44

Closed frasertweedale closed 6 years ago

frasertweedale commented 7 years ago

Newtyping or defining one's own JWKStore type to implement new "filtering" rules, e.g. ignoring keys whose "jku" or "alg" parameters are inconsistent with the operation being performed, is quite burdensome. A more lightweight way of filtering keys is preferred, along with a set of useful predefined rules.

frasertweedale commented 6 years ago

Going to close this WONTFIX. The only change we really need in relation to key filtering is to exclude keys with the wrong usage indicators.