Hello,
The login mechanics work well in Xamarin Forms for both iOS and Android, however, the login window that opens in default browser remains open after successful login.
How do I force the login screen to close after successful login?
Specifically for Xamarin.Forms in both iOS and Android
This is my code snippet that instantiates and launches the login screen(s):
var auth0Client = new Auth0Client(new Auth0ClientOptions
{
Domain = "mycompany.auth0.com",
ClientId = "abc-123-xyz",
Scope = "openid profile email" //"openid profile email"
});
var loginResult = await auth0Client.LoginAsync(); //launch login screen and user logs in
RetrieveUserDetails(loginResult); //after login
return loginResult.IdentityToken;
On another note - It has also come to my attention that a popup login page in a browser will NOT be accepted by Apple.
Has this been amended in Auth0 SDK to use a native form within one’s app? Asking as it has been a known limitation for some time and I’d like to know if this has been addressed.
auth0 REALLY needs to put out a full and correct login implementation sample in Xamarin forms as there are so many Xamarin developers wanting to use your service(s). The lack of detailed how-tos for Xamarin Forms, including fully complying with Apple certification standards, is appalling really.
Thanks