juunas11 / IsolatedFunctionsAuthentication

Sample .NET 6 Azure Function with AAD authentication and authorization through middleware
MIT License
53 stars 24 forks source link

Could you use the Microsoft.Identity.Web nuget package #2

Open mlouage opened 2 years ago

mlouage commented 2 years ago

Hello!

Great piece of code for authentication and authorization. Just wondering, could you use the nuget package Microsoft.Identity.Web in stead of this custom code to achieve the same thing? Or is the implementation so specific for Functions that middelware for normal ASP.NET Core don't work?

juunas11 commented 2 years ago

I haven't tried, but I imagine it would not work as Functions middleware are very different. The way you access request data etc. are different.