Reputation: 67
We develop ServerLess Application based on Azure Functions.
What is the best way to implement Authentication/Authorization based on User Roles? The authentication should not depend on 3rd parties like AAD, Facebook, etc. This is custom auth.
It should be something like we have in ASP.NET MVC/WEB.API using Authorize Attributes with Roles.
Upvotes: 3
Views: 1215
Reputation: 18387
Besides what Akos said, you can create an Azure Function Proxy. It will receive the token, validate and if it's ok, route to the proper Azure Function. It worth a mention that it will require some coding in order to make it work properly.
Upvotes: 1