Category : azure

com.microsoft.aad.adal.AuthenticationException: Socket is closed at com.microsoft.aad.adal.Discovery.performInstanceDiscovery(Discovery.java:262) at com.microsoft.aad.adal.Discovery.validateAuthority(Discovery.java:141) at com.microsoft.aad.adal.AcquireTokenRequest.validateAuthority(AcquireTokenRequest.java:306) at com.microsoft.aad.adal.AcquireTokenRequest.performAuthorityValidation(AcquireTokenRequest.java:216) at com.microsoft.aad.adal.AcquireTokenRequest.validateAcquireTokenRequest(AcquireTokenRequest.java:184) at com.microsoft.aad.adal.AcquireTokenRequest.access$100(AcquireTokenRequest.java:53) at com.microsoft.aad.adal.AcquireTokenRequest$1.run(AcquireTokenRequest.java:122) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) at java.lang.Thread.run(Thread.java:856) Caused by: java.net.SocketException: Socket is closed at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.checkOpen(OpenSSLSocketImpl.java:262) at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:273) at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:257) at libcore.net.http.HttpConnection.setupSecureSocket(HttpConnection.java:210) at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.makeSslConnection(HttpsURLConnectionImpl.java:477) at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.connect(HttpsURLConnectionImpl.java:441) at libcore.net.http.HttpEngine.sendSocketRequest(HttpEngine.java:282) at libcore.net.http.HttpEngine.sendRequest(HttpEngine.java:232) at libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:273) at libcore.net.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:168) at libcore.net.http.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:270) at com.microsoft.identity.common.adal.internal.net.HttpWebRequest.send(HttpWebRequest.java:144) at ..

Read more

I have a Java Android App developed with Android Studio. I am trying to get the cached token or get a new one when expired before sending a request to an Azure Managed Web API service configured with OAuth2. I am trying to use the ISingleAccountPublicClientApplication.acquireTokenSilent() method to get the token synchronously, as I would ..

Read more

NotificationHubClient hub = NotificationHubClient.CreateClientFromConnectionString("Endpoint=sb://actionhubnamespace.servicebus.windows.net/;SharedAccessKeyName=DefaultFullSharedAccessSignature;SharedAccessKey=pYFOtojr/68VVqYUIyap2PKlk+emc+TtNP0FdtIymg4=", "ActionHub"); string message = "{"data":{"message":"I want to finish this"}}"; var result = await hub.SendFcmNativeNotificationAsync(message); I am using azure notification hub to send notification to my android device. When its sending test messages its receiving to the device but when i am using this code and sending message its not visible in ..

Read more

I would like to connect my android application to azures graph API and the identity plattform. I followed this tutorial to do so: https://docs.microsoft.com/de-de/azure/active-directory/develop/tutorial-v2-android But in the end I have got this error when building the application: Could not find com.microsoft.device.display:display-mask:0.3.0. Searched in the following locations: – https://dl.google.com/dl/android/maven2/com/microsoft/device/display/display-mask/0.3.0/display-mask-0.3.0.pom – https://jcenter.bintray.com/com/microsoft/device/display/display-mask/0.3.0/display-mask-0.3.0.pom Required by: project :app > ..

Read more