The Enabling authorization for function apps recipe in Chapter 9, Implementing Best Practices for Azure Functions.