Couldn't retrieve remote JWK set: connect timed out

Issue #221 new
Anonymous created an issue

Hi Team,

I am getting the following exception when I try to validate my token.

validator.validate(token, nonce); //Exception this line

com.nimbusds.jose.RemoteKeySourceException: Couldn't retrieve remote JWK set: connect timed out.

I am using WebLogic server

Comments (4)

  1. Vladimir Dzhuvinov

    Looking at the error message, the remote JWK set URL could be invalid, or there might be some other HTTP or networking issue when trying to download the OpenID provider keys in order to validate the ID token.

    There could also be an issue with the server TLS certificate not being trusted by the JVM.

  2. ayyabas05

    The following line is not setting properly. when i debug the code it is always showing connection time out and read time out as 0 .Can you please assist me how to resolve this issue.

    com.nimbusds.jose.util.DefaultResourceRetriever

    94 . con.setConnectTimeout(getConnectTimeout());
    95 . con.setReadTimeout(getReadTimeout());
    
  3. Log in to comment