microsoft-authentication-library-for-android icon indicating copy to clipboard operation
microsoft-authentication-library-for-android copied to clipboard

Unable to open BrowserTabActivity with an emulator on a PC connected to a VPN

Open saharami opened this issue 3 years ago • 1 comments

Dear team,

Our app currently uses B2C library for login authentication. We would like to run this app on an Android emulator on a PC with a VPN setup. We have already configured the proxy settings to pass through the VPN in the emulator settings, so the app can launch. However, when we try to start B2C's BrowserTabActivity, we get the following error; "Unable to perform cloud discovery".

Environment;

  • minSDK...28
  • Android emulator...Pixel4 API28
  • The proxy setting is configured from the emulator's wifi settings (the following photo on the left).
  • AndroidStudio proxy setting is also configured (the following photo on the right).
  • We have configured Android NetworkSecurityConfig.

As a side note, it works fine on a PC without VPN.

How can we make it work on the PC with the VPN? Is there anything else we need to do?

We would highly appreciate it if you could help us.

emulator setting AndroidStuido setting
emulator_settings androidstudio_setting

saharami avatar Sep 21 '22 07:09 saharami

@negoe - Let's document the endpoints that must be reachable for the library and then have @saharami confirm that those endpoints are reachable via the VPN configuration.

shoatman avatar Oct 10 '22 14:10 shoatman

@saharami Can you please test that you are able to reach this endpoint with VPN connected?

negoe avatar Oct 17 '22 17:10 negoe

@saharami Please let us know if you have any follow up questions? Closing due to no response.

negoe avatar Nov 28 '22 04:11 negoe