OIDCProviderMetadata doesnt make use of the JWSAlgorithm.parse when parsing the metadata

Issue #212 resolved
André Doherty created an issue

hello,

I have identified what might be an issue in the current base code of OIDCProviderMetadata.

The JWSAlgorithm.parse() helper is not used when it could be (line 1946, 1960, 1998). This may have some consequence as tests such as checks from the configuration tree objects will fail :

final List<JWSAlgorithm> metadataAlgorithms = configuration.getProviderMetadata().getIDTokenJWSAlgs();

JWSAlgorithm jwsAlgorithm = metadataAlgorithms.get(0);

jwsAlgorithm == JWSAlgorithm.HS256.

We might expect instead such a check to be successful.

=> I have noticed this approach is in use for ClaimType for instance.

Is that a choice made by design ?

Regards

André

Comments (5)

  1. Log in to comment