私人API端点在公共Azure Serveride Blazor WebApp中

发布于 2025-02-12 18:07:17 字数 237 浏览 0 评论 0原文

我目前正在开发一个公开访问的外汇服务器端应用程序。在此应用程序中,我有一个API-Endpoint,它将仅从另一个WebApp(也可以在Azure运行)访问。

是否有(简单?)通过Azure限制对此端点的访问的方法?我目前正在使用携带者令牌的身份验证,但希望拒绝除其他WebApp以外的所有人,总体上访问。

不可行的选择是将我的外汇服务器端应用程序和API分配到两个WebApps中。

我的应用程序正在运行.NET 6

I am currently developing a blazor-servers-side application which is publicly accessed. In this application I've got an api-endpoint which will only be accessed from another webapp (also running on azure).

Is there an (easy?) way to restrict access to just this endpoint via Azure? I am currently using an authentication with a bearer token, but want to deny everyone, except the other webapp, access in general.

Splitting my blazor-server-side app and the API into two webapps sadly is not an option.

My App is running on .NET 6

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文