Search code examples
okta

Okta endpoint call throws ConnectionTimed out exception


I am getting okta login page and when it authenticates, i am calling token endpoint to get the tokens it works super fine from my system. But when I deploy it in integration system, its throwing me java.net.ConnectException: Connection timed out (Connection timed out) error. I am assuming it could be because of firewall issue.

Is my assumption is right? If yes, What kind of details i have to provide to open firewall? Do I need add/check something else?

Below is from my okta server log. After I am getting exception. enter image description here

Please help.


Solution

  • Just go to your deployment environment and try to curl to your authZ server /token endpoint with a GET request. You will immediately see if there is an issue with the connection. It may be as simple as providing a proxy for the connection, or something else. Your network team should help you, when you tell them Okta endpoint, you are trying to reach