feat(jans-cedarling): improve error handling for JWKS responses #9966
Labels
comp-jans-cedarling
Touching folder /jans-cedarling
enhancement
kind-feature
Issue or PR is a new feature request
Milestone
Is your feature request related to a problem? Please describe.
Currently, when a
jwks_uri
returns multiple keys with varying algorithm support, Cedarling stops initialization if any key is associated with an unsupported algorithm. This behavior can lead to unnecessary disruptions in the service.Describe the solution you'd like
Enhance the error handling mechanism so that Cedarling does not halt initialization when encountering a key from the JWKS with an unsupported algorithm. This improvement will allow for smoother operation and better handling of dynamic key sets.
Describe alternatives you've considered
jsonwebtoken
create which is probably why thejsonwebtoken
crate has the most recent downloads.jsonwebtoken
Crate and implementing the unsupported algorithm: Modifying thejsonwebtoken
crate itself is an option, but it would create maintenance challenges... it's probably better to just wait for an update for now until we really need it.Additional context
The following algorithms are supported in the test-case server:
jsonwebtoken
crate)The following algorithms are supported by the
jsonwebtoken
crate:The text was updated successfully, but these errors were encountered: