Is it possible to disable AAD Auth on specific Azure functions?

后端 未结 1 2013
生来不讨喜
生来不讨喜 2020-12-20 02:44

Background: I have an Azure Function App deployed with App Service Authentication (easyauth) enabled using AAD, hooked up to an Azure AD B2C tenant. It\'s a

相关标签:
1条回答
  • 2020-12-20 03:06

    Would something like URL authorization rules help? It works for both web apps and function apps.

    https://blogs.msdn.microsoft.com/appserviceteam/2016/11/17/url-authorization-rules/

    For your scenario, you'll first need to allow anonymous access in the portal. Next, you'll want to create an authorization.json file in the root of your site and define two routes:

    1. Disable anonymous access at the root.
    2. Enable anonymous access for the anonymous function URL.

    Give that a try and see if it will work for you. In general we want to improve the integration of our authentication feature with Azure Functions, and this is one method we're looking at.

    0 讨论(0)
提交回复
热议问题