I've been building an app in Asp.Net Core and I'm now migrating the API layer to Azure Functions. At the moment authorisation is setup using Microsoft.AspNetCore.Authorization
and Microsoft.AspNetCore.Identity
(i.e. SignInManager, UserManager, Roles + Claims). I'm looking for a place to start on how to move the authorization component to the equivalent in Azure Functions.
My ideal scenario for authentication in my app is to allow a user to register on the site as a business (currently setup as a "domain"), and for the business to have multiple associated users. The "domain" could also request a key to access the API layer for integration into their own systems.
Do I need to setup Azure Active Directory for authentication? Or is it a custom implementation based on my current user data? Is it even possible?