I believe the issue might be related to TLS/SSL trust.
If the Cloud Gateway is acting as a proxy, it could be failing to validate Microsoft’s SSL certificate. Make sure the Java truststore used by the Gateway includes the necessary root certificates for Microsoft endpoints.
You can test this by importing the Microsoft CA certs into the truststore:
Thanks for your input - I added the microsoftCA certificate to “cacert“ keystore as well as “Cloud Gateway” keystore rebooted the Tomcat service and post that performed test connection.
It is failing and getting same issue.
Just want to share findings with you - without proxy application(IIQ cloud gateway) when i tried to perform the test connection for Azure AD - It is successful.
This issue has been resolved. Giving this resolution as it may help in future to others.
Issue - Request was going from IIQ Instance to Cloud Gateway successfully, but from cloud gateway to end system it was going through firewall instead of reverse proxy.
In our case traffic is blocked at firewall.
Resolution : Added Java properties to flow the traffic from application server(Apache tomcat) through reverse proxy.
restart the cloud gateway Apache tomcat service, Run Cloud Gateway synchronization task and post that perform the test connection. For me it worked