Azure Function with AD auth results in 401 Unauthorized when using Bearer tokens

前端 未结 7 564
春和景丽
春和景丽 2020-12-29 07:47

I have a very simple Azure function in C# for which I\'ve setup Azure AD Auth. I\'ve just used the Express settings to create an App registration in the Function configurati

7条回答
  •  一整个雨季
    2020-12-29 08:09

    In the AAD app itself, go to Settings -> Reply URLs and verify that the url of the Function App is in the list, which has the following format: https://mycoolapp.azurewebsites.net. If it isn't, then add it.

    If you use slots, you have to add it for both slots.

提交回复
热议问题