首页 > 解决方案 > 在 Android 模拟器中显示 Azure AD B2C 登录

问题描述

我正在使用带有 Xamarin.Forms 的 Azure AD B2C 进行测试,特别是在此处找到的示例: https ://docs.microsoft.com/en-us/samples/xamarin/xamarin-forms-samples/webservices-azureadb2cauth/

该代码似乎工作正常。一切都按预期使用 UWP。IOS还没测试。

在我的 Android 模拟器上,当我单击登录按钮时,Chrome 窗口打开并且我得到一个空白页面。

调试窗口显示以下内容:

[错误:gl_surface_egl.cc(335)] eglChooseConfig 因错误 EGL_SUCCESS 10-13 21:25:37.024 D/ (3450) 失败:HostConnection::get() 新主机连接已建立 0xca5fe1c0,tid 3450 10-13 21:25: 37.024 E/铬(3450):[错误:gl_surface_egl.cc(335)] eglChooseConfig 因错误 EGL_SUCCESS 而失败

我也看到了:10-13 20:22:55.071 W/com.dandaappdevelopment.shiplog(2977): type=1400 audit(0.0:953):avc: denied { link } for comm=54687265616420506F6F6C20576F72 name="PropertyStore .forms.tmp" dev="dm-1" ino=123775 scontext=u:r:untrusted_app:s0:c88,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c88,c256,c512,c768 tclass =文件允许=0

我已经使用两个不同版本的 Chrome 尝试了此处显示的步骤: https ://github.com/AzureAD/microsoft-authentication-library-for-android/wiki/Android-Emulator-with-MSAL

任何帮助表示赞赏。

谢谢,韦斯特利

标签: androidxamarin.formsazure-active-directorymsal

解决方案


推荐阅读