Since the authentication middleware only runs in Azure via Configuration there is no local testing of it possible. If you want to use authentication & authorization locally or in other non Azure environments check out this post on doing it in code: https://philippbauknecht.medium.com/authentication-authorization-in-azure-functions-with-azure-active-directory-using-c-net-aad52c8de925