简体   繁体   中英

How to add token in the Header for the python azure function app Http response and to get the status code of 200. Then it has got to the main code

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: 在此处输入图像描述

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:

在此处输入图像描述

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM