简体   繁体   English

如何使用Azure B2C保护Azure API管理API

[英]How do I secure Azure API Management APIs using Azure B2C

I'm using web applications secured with Azure Active Directory B2C. 我正在使用通过Azure Active Directory B2C保护的Web应用程序。 Those applications call services using JavaScript hosted by Azure API Management. 这些应用程序使用Azure API Management托管的JavaScript调用服务。

I was surprised to read that I can only secure front end APIs using App Keys or client certificate. 令我惊讶的是,我只能使用应用程序密钥或客户端证书来保护前端API。

https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-create-subscriptions https://docs.microsoft.com/zh-cn/azure/api-management/api-management-howto-create-subscriptions

How can I secure those applications using an Oauth token? 如何使用Oauth令牌保护这些应用程序的安全?

You can configure B2C as an identity provider in Azure API Manager: 您可以在Azure API管理器中将B2C配置为身份提供者:

How to authorize developer accounts by using Azure Active Directory B2C in Azure API Management 如何在Azure API管理中使用Azure Active Directory B2C授权开发人员帐户

This article explains how to authorize access to the developers portal but think about the developers portal as "ANY API" 本文介绍了如何授权访问开发人员门户,但将开发人员门户视为“ ANY API”

You can validate the JWT issued by Azure AD B2C using an API Management policy: 您可以使用API​​管理策略来验证Azure AD B2C发出的JWT:

API Management access restriction policies - Validate JWT API管理访问限制策略-验证JWT

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM