当使用Microsoft Identity平台已经安全时,为什么我应该从APIM启用OAuth

发布于 2025-01-23 15:32:53 字数 183 浏览 5 评论 0原文

我已经使用.NET Core 5创建了Web API。我使用Microsoft Identity平台确保了该应用程序。客户应用程序能够根据其范围/角色来获得资源。所以我知道我的API是安全的。

现在,我需要将API添加到Azure API管理工具中。 因此,我的问题是,即使我的应用已经确保了?我从API管理中启用OAuth的原因是什么?

I have created a Web API using .net core 5. I have secured the app using the Microsoft Identity platform. Clients app are able to get to the resource based on their scope/role. So I know that my api is secure.

Now, I need to add the API to Azure API Management tool.
So my question is should I enable OAuth from the Azure API Management to secure my web api even though my app is already secured?. What would be the reason that I enable OAuth from API management?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不弃不离 2025-01-30 15:32:53

apim 代理 后端API 并实施安全机制以提供额外的安全层以防止未经授权访问API是建议的做法。

apim 中配置 oauth 2.0 服务器仅使开发人员门户网站的测试控制台作为APIM的客户端可以从Azure Active Directory获取令牌。在现实世界中,客户将拥有一个不同的客户端应用程序,该应用需要在AAD中进行配置,以获得有效的 oauth 标记 apim 可以验证。

oauth 是一个授权框架,允许公认的客户从授权服务器获取访问令牌。

如此 Microsoft Identity 平台使用 oauth 2.0协议 来处理授权。

请在下面找到参考文献使您如何确保Web API/服务:

APIM is a proxy to the backend APIs and implementing security mechanisms to give an extra layer of security to prevent unauthorized access to APIs is a recommended practice.

Configuring OAuth 2.0 Server in APIM merely enables the Developer Portal’s test console as APIM’s client to acquire a token from Azure Active Directory. In the real world, customer will have a different client app that will need to be configured in AAD to get a valid OAuth token that APIM can validate.

OAuth is an authorization framework which allows a recognized client to acquire an access token from an authorization server.

As given in this Microsoft Doc, the Microsoft Identity Platform uses the OAuth 2.0 protocol for handling authorization.

Please find below references makes you how OAuth secures the Web APIs/Services:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文