Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在xamarin中实现Azure AD b2c不会跟踪登录的用户_C#_Xamarin_Xamarin.forms_Azure Ad B2c - Fatal编程技术网

C# 在xamarin中实现Azure AD b2c不会跟踪登录的用户

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

在iOS应用程序中,在登录按钮上单击“我有此代码”

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

为什么它不跟踪刚刚登录的用户

注意:我正在模拟器上测试