Hello,
Using the Azure library in Java to try to obtain a token with the following code:
ConfidentialClientApplication app = ConfidentialClientApplication.builder(
config.getClientId(),
ClientCredentialFactory.createFromCertificate(key, cert))
.authority(config.getAuthority())
.build();
ClientCredentialParameters clientCredentialParam = ClientCredentialParameters.builder(Collections.singleton(config.getScope()))
.build();
CompletableFuture<IAuthenticationResult> future = app.acquireToken(clientCredentialParam);
return future.get();
This works just fine on my machine but once my organization deploys it to our development server we get the following error:
"eventMessage" : "com.microsoft.aad.msal4j.MsalClientException: javax.net.ssl.SSLException: java.net.SocketException: Connection reset",
"eventDetails" : "java.net.SocketException: Connection reset
It is behind a firewall and they've opened up the following URLs:
https://login.microsoftonline.com/
https://graph.microsoft.com/
What else needs to be done to make this work behind a firewall?
Thanks.