C# 如何强制网页导航到登录页面而不是自动登录?

C# 如何强制网页导航到登录页面而不是自动登录?,c#,xamarin.android,azure-ad-b2c,msal,C#,Xamarin.android,Azure Ad B2c,Msal,MSAL库在Xamarin.Android应用程序的chrome浏览器中启动登录屏幕。成功登录后,应用程序会按预期重定向到主页。以下是正在使用的登录代码片段: Microsoft.Identity.Client.AuthenticationResult auth = null; App.PrepareAuthClient(authType); string policy = App.SignInPolicyB2C; string authority = App.AuthoritySignInB

MSAL库在Xamarin.Android应用程序的chrome浏览器中启动登录屏幕。成功登录后,应用程序会按预期重定向到主页。以下是正在使用的登录代码片段:

Microsoft.Identity.Client.AuthenticationResult auth = null;
App.PrepareAuthClient(authType);

string policy = App.SignInPolicyB2C;
string authority = App.AuthoritySignInB2C;

(...)

auth = await App.AuthenticationClient.AcquireTokenAsync(
                App.ApiScope,
                GetUserByPolicy(App.AuthenticationClient.Users, policy),
                App.UiParent);
但是,该问题在注销后发生。一旦我们注销并尝试重新登录,chrome浏览器将不再显示登录页面以输入用户名和密码,它将自动登录用户并将其重定向到主页,而无需加载登录页面。浏览器只需打开并加载几秒钟,然后将用户重定向到主页,即使在用户明确注销后也能成功登录

我们尝试添加prompt=force登录,但似乎没有帮助。用户再次获取登录页面的唯一方法是在手动清除chrome浏览器缓存之后

有没有办法在注销时清除缓存?或者,即使存在缓存信息,是否有其他方法强制浏览器显示登录页面