Blog Logo

Google Authentication for your Azure Function app

In this blog post, we will focus on Authenticating Azure Functions using Google Authentication. We will be using App Service to use Google as our Identity Provider. We will keep our sample function as simple as possible, which in this case mean return a string. With our sample function in place, we will deploy the function to azure and grab the Url. Now that we have our function up and running in Azure, the next step involves setting up our Google App using Google Developer Console. Client ID and Client secret are ones we got in the Figure 09. You also need to ensure the “Unauthenticated Requests” is set as “Http 401 Unauthorized : recommended for APIs” along with “Authentication” as “Require Authentication”. Save your details and your Azure function would be now ready to be authenticated with Google. Try accessing the Function URI and you would be redirected to the Google authentication page.