Adding authentication to Azure Functions
In the previous chapter, we set up a new, live backend using an Azure Function App. The service contains a single table named entry
, which houses all log entries for our TripLog app and makes them available via an entry
endpoint. Currently, the entry
endpoint is available anonymously.
In this section, we'll change the permissions on the Azure Function App to require each request to contain an access token associated with an authenticated user.
Setting up an identity provider
There are a couple of approaches you can use to handle identity and authentication in Azure. You can set up the Azure Function App to use Facebook, Twitter, a Microsoft Account, Google, or even Azure Active Directory as a trusted identity provider. You can also create your own custom identity provider if you want to use account data stored in your database, instead of one of the social providers. You can use one of these options or a combination of several...