Blog Logo
TAGS

Role Based Authorization in Azure Functions with Azure AD and App Roles

In this article, Philipp Bauknecht explains how to limit access to restful APIs in Azure Functions with .NET Core by assigning users to app roles in Azure Active Directory. While discussing the drawbacks related to app roles, he explains how app roles are created and how users are assigned those roles. He also discusses how to limit a function to a role using middleware approach and provides a sample code snippet for creating custom RoleAuthorizeAttribute.