我们可以在AAD B2C中使用AZURE API Management服务吗? [英] Can we use AZURE API Management service with AAD B2C

查看:96
本文介绍了我们可以在AAD B2C中使用AZURE API Management服务吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面需要帮助。

我创建了两个API  AAD B2C租户中的应用程序都已部署,并且能够使用MSAL令牌从客户端应用程序进行访问。 

I have created two API  applications in AAD B2C tenant both are deployed and able to access from the client application using MSAL token. 

现在已创建API管理服务并导入了两个服务中的API。当尝试从api管理开发人员门户网站运行这些API时,我得到的是"此请求已拒绝授权"

Now created API management service and imported both the API in service. When try to run these API from api management developer portal, i am getting "Authorization has been denied for this request"

如何应对这种情况。




推荐答案

是的,  Azure API管理支持开箱即用的集成Azure AD B2C,如果您使用的是API管理服务的Premium,Standard或Developer层。 

https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-aad -b2c

要解决您收到的错误,请使用fiddler检查标题以确保标题正确并且还包含您的API调用使用?如果失败,您能否显示错误日志? 

To troubleshoot the error you are receiving, can you please use fiddler to check your headers to ensure that your header is correct and also include the API call that you are using? If it fails, can you please show the error logs? 

您是否也可以查看任何相关的SO帖子是否可以帮助您?  https://stackoverflow.com/questions/55054705/authorization-has-已被拒绝为此请求 - 当托管 - 天蓝色应用程序服务

Can you also see if any of the related SO posts might help you? https://stackoverflow.com/questions/55054705/authorization-has-been-denied-for-this-request-when-hosting-azure-app-service


这篇关于我们可以在AAD B2C中使用AZURE API Management服务吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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