是否有可能隐藏Xamarin.Auth NavigationBar?
我搜索了Xamarin论坛和其他许多人,但似乎没有人这样做过......
对于身份验证,我遵循指南"Authenticating Users with Azure Mobile Apps"。
这是我当前的代码(在 Android 上):
public async Task<bool> AuthenticateAsync ()
{
...
// The authentication provider could also be Facebook, Twitter, or Microsoft
user = await TodoItemManager.DefaultManager.CurrentClient.LoginAsync(this, MobileServiceAuthenticationProvider.Google);
...
}
如果这是不可能的......有什么办法可以自己包装社交登录选项吗? (即网页视图或......?)
答案 0 :(得分:2)
不幸的是答案是否定的。在登录流程期间,Xamarin Forms正在使用ADAL(Active Directory身份验证库)。在移动设备上,它不提供直接使用用户名和密码的机制(原始),因此您无法以不同的方式实现身份验证流(如自定义视图)。 您可以在下面阅读更多内容:
https://docs.microsoft.com/en-us/azure/active-directory/active-directory-authentication-libraries