如何将身份验证添加到Azure功能

发布于 2025-01-18 10:22:50 字数 442 浏览 0 评论 0原文

我创建了一个 HTTP 触发的 Azure 函数并公开了一些端点。我从 Salesforce 社区调用这些端点。

https://<testing...>.azurewebsites.net/getData
https://<testing...>.azurewebsites.net/postData
https://<testing...>.azurewebsites.net/updateData
https://<testing...>.azurewebsites.net/deleteData

Azure Functions 授权级别是匿名的。我可以访问从 HTTP 端点到 salesforce 社区站点的响应。

如何设置授权级别,以便只能从 Salesforce 社区和 salesforce 用户访问端点?

谢谢

I have created an HTTP Triggered Azure Function and exposed some endpoints. I am calling those endpoints from Salesforce Community.

https://<testing...>.azurewebsites.net/getData
https://<testing...>.azurewebsites.net/postData
https://<testing...>.azurewebsites.net/updateData
https://<testing...>.azurewebsites.net/deleteData

The Azure Functions Authorization Level is anonymous. I can access the responses from HTTP endpoints to the salesforce community site.

How can I set the authorization level so that, the endpoints can only be accessible from the Salesforce Community and the salesforce Users?

Thanks

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

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

发布评论

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

评论(1

荆棘i 2025-01-25 10:22:50

有很多可用的选项,例如应用程序服务身份验证或使用API​​管理来授权请求​​。

看看身份验证/授权

虽然功能密钥可以提供一些减轻不良访问的缓解措施,但真正保护您的功能终点的唯一方法是实现客户访问您的功能的积极身份验证。然后,您可以根据身份做出授权决定。

There are quite a few options available like App Service Authentication or using API management for authorizing requests.

Have a look at Securing Azure Functions - Authentication/authorization.

While function keys can provide some mitigation for unwanted access, the only way to truly secure your function endpoints is by implementing positive authentication of clients accessing your functions. You can then make authorization decisions based on identity.

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