eshop-mobile-client icon indicating copy to clipboard operation
eshop-mobile-client copied to clipboard

Using the real microservices endpoint for the mobile app

Open sughosneo opened this issue 4 years ago • 7 comments

After setting up the actual microservices URLs in the placeholder of Identity Url and Web Shopping Gateway Url, when we click on the [ Login ] button, nothing happens.

image

Do we need to update any further configuration in the codebase?

sughosneo avatar Aug 17 '21 10:08 sughosneo

@michaelstonis - Could you please share the steps? So that we can update the Wiki. Thank you

sughosneo avatar Aug 17 '21 10:08 sughosneo

The login button here should behave the same way as before. This logic was not updated.

The login button should show or launch a web browser to perform authentication. Are you not seeing that prompt?

michaelstonis avatar Aug 18 '21 15:08 michaelstonis

The issue here is that the service is http, so we need to enable clear-text for specific urls.

jamesmontemagno avatar Aug 18 '21 16:08 jamesmontemagno

https://devblogs.microsoft.com/xamarin/cleartext-http-android-network-security/

jamesmontemagno avatar Aug 18 '21 16:08 jamesmontemagno

We can enable clear-text for the entire app or for specific urls. it is probably best for specific urls if we document it.

jamesmontemagno avatar Aug 18 '21 16:08 jamesmontemagno

For iOS we need to opt out as well -> https://docs.microsoft.com/en-us/xamarin/ios/app-fundamentals/ats?WT.mc_id=docs-xamarinblog-jamont#opting-out-of-ats

jamesmontemagno avatar Aug 18 '21 16:08 jamesmontemagno

The identity api gives an error when I try to access it using 10.0.2.2 IP from the emulator. The same API works only when accessed through host.docker.internal dns alias.

bilal-dandara avatar Jan 08 '22 20:01 bilal-dandara