'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: enter image description here



Solution 1:[1]

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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 HariKrishnaRajoli-MT