AD B2C目录中未找到AD应用程序 [英] AD Application was not found in the AD B2C directory

查看:74
本文介绍了AD B2C目录中未找到AD应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我正在关注本教程  docs.microsoft.com/en-us/azure/active-directory-b2c/tutorial-add-identity-providers  ;但是当我去测试时,我得到以下消息:


标识符为'xxxxxxxx-xxxx-的应用程序 - 在目录'yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy'中找不到xxxx-xxxx-xxxxxxxxxxxx'。如果租户的管理员
尚未安装应用程序或租户中的任何用户同意该应用程序,则会发生这种情况。您可能已将您的身份验证请求发送给错误的租户。


其中xxxx ...是" Azure Active Directory应用程序"我在我的默认订阅目录中创建了
我的Azure AD


和yyyy ...是我为我的AD B2C租户创建的目录


本教程没有提及有关权限的任何内容,我使用MS帐户创建了所有内容,该帐户是我所有azure帐户的管理员。 我不确定如何解决这个问题,有人能指出我正确的方向吗? 




解决方案

此消息通常表示客户端应用程序未在您的请求中使用的租户中注册,因为租户中找不到应用程序ID
。您是否可以仔细检查您在此处使用的租户以及具有该应用ID的应用是否已在该租户中注册?代码中的应用程序ID需要与租户中的客户端ID匹配,租户ID也需要在两个位置匹配。需要
才能在B2C租户下注册,而不是常规的AAD租户。 


https://docs.microsoft.com/en-us/azure/active-directory-b2c/tutorial-register-applications


Hello,

I was following this tutorial docs.microsoft.com/en-us/azure/active-directory-b2c/tutorial-add-identity-providers but when i go to test it i get the following message:

Application with identifier 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' was not found in the directory 'yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy'. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant.

where xxxx... is the "Azure Active Directory application" i created in my default subscription directory where Ihave my Azure AD

and yyyy... is the directory I created for my AD B2C tenant

The tutorial doesn't mention anything about permissions and I created everything using the MS account that is the admin for all of my azure accounts.  I am not really sure how to resolve this issue, can someone point me in the right direction? 


解决方案

This message generally means that the client app is not registered in the tenant that was used in your request as the app ID was not found in the tenant. Can you double check the tenant you used here and that the app with that app ID is registered in that tenant? The app ID in your code needs to match the client ID in your tenant, and the tenant ID also needs to match in both places. It needs to be registered under the B2C tenant and not the regular AAD tenant. 

https://docs.microsoft.com/en-us/azure/active-directory-b2c/tutorial-register-applications


这篇关于AD B2C目录中未找到AD应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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