如何在python azure函数应用程序http响应的标题中添加令牌并获取200的状态代码。

发布于 01-22 16:30 字数 245 浏览 5 评论 0原文

如何从用户中获取令牌,然后我们传递其Python Azure HTTP触发功能应用程序,并且一旦状态代码为200,则只需转到主功能代码。

这就是我在想:

How to get the Token from the user and we pass in its python azure HTTP trigger function app and once the status code is 200 then only it has to go to the main function code.

This is what I am thinking of:
enter image description here

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

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

发布评论

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

评论(1

我很OK 2025-01-29 16:30:55

如何从用户那里获取令牌,然后我们传递其Python Azure HTTP触发函数应用程序,并且一旦状态代码为200

您可以在HTTP触发请求URL中使用Azure函数(Python,.NET等)中的授权密钥功能

,您必须发送授权代码和值。

您可以从azure函数应用程序门户网站:

在此处”

“ “ 使用单个授权密钥,或者您需要一个函数应用程序中每个函数的单个键,所有功能都取决于函数请求URL中使用的授权范围(键)。

请参阅与客户身份合作在Azure函数中用于用户身份验证/授权设置。

How to get the Token from the user and we pass in its python azure HTTP trigger function app and once the status code is 200 then only it has to go to the main function code.

You can make use of Authorization Keys functionality in Azure functions (Python, .NET, etc.)

In the Http Trigger Request URL, you have to send the Authorization code and value.

That you can get it from the Azure Function App Portal:

enter image description here

For allowing access to all functions in your function app using a single authorization key or you need an individual key to every function in your function app, all it depends on the Authorization scopes (keys) used in the Function request URL.

Refer Working with Client Identities in Azure Functions for user authentication/authorization setting-up.

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