[UWP] AuthenticationContext关闭App,没有异常 [英] [UWP] AuthenticationContext closes App with no Exception

查看:167
本文介绍了[UWP] AuthenticationContext关闭App,没有异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经隔离了这段代码,导致应用程序关闭而不会抛出任何异常:

I've isolated this piece of code that causes the app to close without any exceptions being thrown:

Result = await _authContext.AcquireTokenAsync(_resourceUrl, _clientId, _redirectURI, new PlatformParameters(_promptBehavior, false));

除了特定情况外,它按预期工作:

It works as intended, except in one specific situation:

如果我更改了用户密码的重置,对话框将显示约10秒钟,然后自行关闭应用程序。 密码重置是否会以其他方式处理?

If I change a reset a user's password, the dialog will show up for about 10 seconds, then close the app on its own.  Are password resets suppose to be handled in some other way?

它似乎只在启用了.NET本机工具链的发布模式下发生。

It only appears to happen in release mode with .NET native tool chain enabled.

Os版本:10.0.14393。

Os Version: 10.0.14393.

Nugets:

Microsoft.Identity。客户端v2.7.1

Microsoft.Identity.Client v2.7.1

Microsoft.IdentityModel.Clients.ActiveDirectory v4.5.1

Microsoft.IdentityModel.Clients.ActiveDirectory v4.5.1

推荐答案

您好,

由于问题与Azure API更相关,因此不在UWP论坛的范围内。我将帮助您将此主题移至 Azure Active Directory论坛 和
你可以在那里获得更多帮助。感谢您的耐心等待。

Since the problem is more related to Azure API, it is out of the scope of UWP forum. I'll help you to move this thread to Azure Active Directory Forum and you could get more help there. Thank your for your patience.

致以最诚挚的问候,

Roy


这篇关于[UWP] AuthenticationContext关闭App,没有异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆