Azure Function with AD auth results in 401 Unauthorized when using Bearer tokens
问题 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 configuration. public static class IsAuthenticated { [FunctionName("IsAuthenticated")] public static async Task<IActionResult> Run( [HttpTrigger(AuthorizationLevel.Anonymous, "get", "options", Route = null)] HttpRequest req, ILogger log) { return new OkObjectResult("You are " + req.HttpContext.User.Identity.Name); } } When I access the