-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MsalClientException: java.lang.IllegalStateException: Unable to extract the trust manager on Android10Platform #1924
Comments
It seems that OkHttp's OkHttpClient$Builder.sslSocketFactory that accepts only an instance of SSLSocketFactory is deprecated exactly because of this reason:
So in above code, OkHttp tries to use reflection on MSAL's SSLSocketFactoryWrapper to find the trust manager, without success. It seems that MSAL's SSLSocketFactoryWrapper doesn't expose trust managers. Maybe there's an alternative MSAL API to get the trust manager? |
@Kolo22 Can you please share the following?
This needs further investigation from our side in order to confirm you. |
Hi @negoe , |
This is because the HttpsUrlConnection#setSSLSocketFactory invocation was added into UrlConnectionHttpClient#setupConnection in this commit, which was integrated as part of MSAL's 3.0.2 release. |
Hello,
I’m encountering an issue with the following stack trace:
I’m currently using the latest versions of the following libraries:
‘com.microsoft.identity.client:msal:4.9.0’
‘com.squareup.okhttp3:okhttp-urlconnection:4.11.0’
It appears that recent changes in MSAL versions have led to inconsistencies with functionalities.
Any assistance would be greatly appreciated. Thank you.
The text was updated successfully, but these errors were encountered: