C# 在xamarin中实现Azure AD b2c不会跟踪登录的用户
在iOS应用程序中,在登录按钮上单击“我有此代码”C# 在xamarin中实现Azure AD b2c不会跟踪登录的用户,c#,xamarin,xamarin.forms,azure-ad-b2c,C#,Xamarin,Xamarin.forms,Azure Ad B2c,在iOS应用程序中,在登录按钮上单击“我有此代码” AuthenticationResult ar= 等待App.PCA.AcquireTokenAsync(App.Scopes, GetUserByPolicy(App.PCA.Users,App.PolicySignUpSignIn),App.UiParent); 这将带我到B2C网页,成功登录后,它会返回到应用程序 OnResume()我有以下代码 AuthenticationResult ar= 等待应用程序PCA.AcquireTok
AuthenticationResult ar=
等待App.PCA.AcquireTokenAsync(App.Scopes,
GetUserByPolicy(App.PCA.Users,App.PolicySignUpSignIn),App.UiParent);
这将带我到B2C网页,成功登录后,它会返回到应用程序
OnResume()
我有以下代码
AuthenticationResult ar=
等待应用程序PCA.AcquireTokenSilentAsync(应用程序范围,
GetUserByPolicy(App.PCA.Users,App.PolicySignUpSignIn),App.Authority,false);
它引发异常,因为App.PCA.Users.Count
为0
为什么它不跟踪刚刚登录的用户
注意:我正在模拟器上测试