【发布时间】:2022-01-12 09:20:03
【问题描述】:
我已将 IdentityModel.OidcClient 与 UWP 应用程序一起使用并连接到 Azure AD。登录 webview 打开并自动关闭,但注销弹出窗口不会自动关闭。
我的实现基于this。当注销发生时,最后的函数调用会在此处进行,但直到手动关闭弹出窗口,执行才会在此 AuthenticateAsync 函数调用中挂起。
if (string.Equals(options.EndUrl, WebAuthenticationBroker.GetCurrentApplicationCallbackUri().AbsoluteUri, StringComparison.Ordinal))
{
wabResult = await WebAuthenticationBroker.AuthenticateAsync(
wabOptions, new Uri(options.StartUrl));
//Execution returns here, once the popup closes manually.
}
【问题讨论】:
标签: uwp win-universal-app openid-connect oidc-client identitymodel