Exceptions thrown by validateJWTToken() method are differentiated whether they are client or server exceptions and handheld accordingly.
Avoid possible null pointer exception by swapping the values used in equal check inside isTrustedTokenIssuer() method.
Add more unit tests into OpenIDConnectAuthenticatorTest and OIDCTokenValidationUtilTest classes in order to verify API based authentication functionality of the OIDC authenticator.
Proposed changes in this pull request
validateJWTToken()
method are differentiated whether they are client or server exceptions and handheld accordingly.isTrustedTokenIssuer()
method.OpenIDConnectAuthenticatorTest
andOIDCTokenValidationUtilTest
classes in order to verify API based authentication functionality of the OIDC authenticator.