当使用Microsoft Identity平台已经安全时,为什么我应该从APIM启用OAuth
我已经使用.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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
apim 是 代理 后端API 并实施安全机制以提供额外的安全层以防止未经授权访问API是建议的做法。
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.
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: