Enabling authorization for function apps
If your web API (HTTP trigger) is being used by multiple client applications and you would like to provide access only to the intended and authorized applications, then you need to implement authorization in order to restrict access to your Azure function.
In this recipe, you are going to learn how to enable authorization in Azure Functions and will gain clarity on the different types of authorization.
Getting ready
You should know by now how to create an HTTP trigger function. Download the Postman tool from www.getpostman.com/. The Postman tool is used for sending HTTP requests. You can also use any tool or application that can send HTTP requests and headers.
How to do it…
In this section, we'll create and test the HTTP trigger's authorization functionality by performing the following steps:
- Create a new HTTP trigger function (or open an existing HTTP function). When creating the function, select
Function...