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.
agree, Please someone at Auth0 reply to this thread. We’ve used the web pop up logins for too long and are looking to create a custom login page like we do with our native apps. Please let me know if this is possible.
Hi guys, someone has finally given whit the cause of the problem or how to solve it, I have the same problem, I have spent a lot of time but I do not have an answer
It would be really nice to be able to use the Lock from Xamarin apps, but the UIX is not really there yet, with using an external browser, browser window left open after login, address bar showing etc.