2016-11-30 15 views
-1

以下是来自Windows事件查看器的日志。任何人都知道为什么它被禁止?AuthHost不允许UrlAction:0x2301

AuthHost不允许UrlAction:0x2301的URL:https://login.microsoftonline.com/xxxx/oauth2/authorize?client_id=xxx&response_type=id_token+token&redirect_uri=xxxx&state=12345&nonce=678910&resource=https://graph.windows.net/

+0

您是否使用[Active Directory Authentication Library](https://www.nuget.org/packages/Microsoft.IdentityModel.Clients.ActiveDirectory/)?如果不是,请检查[此链接](https://social.msdn.microsoft.com/Forums/en-US/acff0466-1ed1-49a2-90ae-6dc0a6bb0e98/authhost-encountered-a-navigation-error?forum= WindowsAzureAD)很有帮助。如果你仍然有这个问题,请分享一段可能重现此问题的代码。 –

+0

@ FeiXue-MSFT不我不使用ADAl.js,因为它只适用于Web应用程序。在我的情况下,我有一个本机应用程序,我使用“Windows.Security.Authentication.Web.WebAuthenticationBroker.authenticateAsync”执行AAD登录。 由于我拥有正确的重定向uri,因此您分享的链接在这种情况下无效。 – Jian

+0

我未能在Window 10上重现此问题。您是否可以使用WebAuthenticationBroker .authenticateAsync来导航其他网页? –

回答

0

我发现了我面对disallow错误的原因,在“authenticateAsync”方法的选项中,我应该使用“useCorporateNetwork”而不是“none”。