MSAL Android Xamarin 卡住对话框 - "Are you trying to sign in to {your_appname}"?
MSAL Android Xamarin Stuck Dialog - "Are you trying to sign in to {your_appname}"?
我们在单租户模式下通过 Azure 门户使用 MSAL。
应用程序是 Xamarin 表单,平台 Android,在模拟器或三星 phone 上调试具有相同的结果。
此对话框出现,按按钮没有任何反应。
按“继续”不执行任何操作,调试器也没有输出
按“取消”没有任何作用,调试器也没有输出
应用程序正在验证,我们每次单击“继续”时都可以在 Azure 门户日志中看到它
如果我们点击“继续”3 次,我们会在 Azure 门户日志中看到 3 个确认的身份验证。
为什么这个对话框不响应按钮点击?
问题已通过添加解决
.WithUseEmbeddedWebView(真)
现在不再出现对话框
result = await authContext.AcquireTokenInteractive(Scopes)
.WithAuthority(Authority)
.WithUseEmbeddedWebView(true)
.WithParentActivityOrWindow(pwindow)
.ExecuteAsync();
我们在单租户模式下通过 Azure 门户使用 MSAL。 应用程序是 Xamarin 表单,平台 Android,在模拟器或三星 phone 上调试具有相同的结果。
此对话框出现,按按钮没有任何反应。 按“继续”不执行任何操作,调试器也没有输出 按“取消”没有任何作用,调试器也没有输出
应用程序正在验证,我们每次单击“继续”时都可以在 Azure 门户日志中看到它 如果我们点击“继续”3 次,我们会在 Azure 门户日志中看到 3 个确认的身份验证。
为什么这个对话框不响应按钮点击?
问题已通过添加解决 .WithUseEmbeddedWebView(真)
现在不再出现对话框
result = await authContext.AcquireTokenInteractive(Scopes)
.WithAuthority(Authority)
.WithUseEmbeddedWebView(true)
.WithParentActivityOrWindow(pwindow)
.ExecuteAsync();