I am running into issues using the jwt-verifier-java libraries to verify an id token from azure. Everything works beautifully when using okta. From my understanding, the libraries should work for any idp conforming to OIDC standards, but please correct me if it is intended to be okta only.
From the readme “This helper class configures a JWT parser with the details found through the OpenID Connect discovery endpoint.”
I see however from the code that the issuer url is used to create the keys endpoint and the discovery endpoint is not called.
protected String resolveKeysEndpoint(String issuer) {
return issuer.matches(".*/oauth2/.*")
? issuer + "/v1/keys"
: issuer + "/oauth2/v1/keys";
}
My issue is that for my customer using azure instead of okta, this is the incorrect keys endpoint. Why is the discovery endpoint not utilized? Thanks in advance!