图形API - Azure的AD B2C - 抛出错误 - 未发现标识应用 [英] Graph API - Azure AD B2C - throws error - Application with identifier not found

查看:438
本文介绍了图形API - Azure的AD B2C - 抛出错误 - 未发现标识应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是跟随下面的链接设置在Azure AD B2C-与图形API设置

I was following the below link to setup the Azure AD B2C- with Graph API setup

<一个href=\"https://azure.microsoft.com/en-in/documentation/articles/active-directory-b2c-devquickstarts-graph-dotnet/\" rel=\"nofollow\">https://azure.microsoft.com/en-in/documentation/articles/active-directory-b2c-devquickstarts-graph-dotnet/

我可以使用PowerShell命令的设置来进行,但是当我试图与应用程序,当它执行低于code,

I was able to proceed with powershell command settings, but when I try with the application, when it executes the below code,

 authContext.AcquireToken("https://graph.windows.net", credential); 

得到类似下面的错误,什么是错的呢?

getting error like below, what is wrong with this ?

AADSTS70001: Application with identifier '33d8d9ba-8c07-462a-8936-23387ddb4x5e'
was not found in the directory abc.onmicrosoft.com
Trace ID: b858d725-fbaa-4a39-8da1-84ef2a82a0a9
Correlation ID: da7c254e-a10e-4df6-9965-215685447e74
Timestamp: 2016-03-29 06:40:23Z

如何解决这个问题。任何输入AP preciated。

推荐答案

感谢您的意见,终于发现了问题。

Thanks for your comments, finally found the problem.

通过执行以下命令,发现该应用程序不被创建。

by executing the below command, found the application was not created.

GET-MsolServicePrincipal -AppPrincipalId 33d8d9ba-8c07-462a-8936-23387ddb4x5e。

Get-MsolServicePrincipal -AppPrincipalId 33d8d9ba-8c07-462a-8936-23387ddb4x5e.

我重新申请并试图,事情似乎工作。

I recreated the application and tried, things seems working.

我有一个类似的问题,这也得到了解决。

I had an similar issue, this also got resolved

<一个href=\"http://stackoverflow.com/questions/36151730/error-connect-msolservice-your-credentials-could-not-be-authenticated-try-a\">Error - 连接 - MsolService:您的证书不能进行身份验证。试

如果您有关于创建PowerShell中的应用程序的任何问题,请按照本跌破发行提供的解决方案。

If you have any problem creating the application on powershell, follow the solution provided in this below issue.

<一个href=\"http://stackoverflow.com/questions/34044861/several-azure-ad-new-msolserviceprincipal-access-denied\">Several Azure的广告。新MsolServicePrincipal:拒绝访问

这篇关于图形API - Azure的AD B2C - 抛出错误 - 未发现标识应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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