Reputation: 23
So, I have Asp.net core MVC app with Azure AD that allows people to sing in with their microsoft acc and then gives me their name and email. I have this authorization that is based on one static class that adds user on Index page and its so dumb, so I want to switch to role-based authorization. My problem is that I was unable to find any info about how to do it. Is there some type of tutorial? I am very new to authorization so I really dont know how these things work but I am unable to find some source... Thanks for any help.
Edit: I want user to sing in with his microsoft acc and then get his name, look to db and then add him roles.
Upvotes: 2
Views: 3287
Reputation: 2102
Please take a look at the sample which helps you to add authorization using app roles & roles claims to an ASP.NET Core web app that's signs-in users with the Microsoft identity platform.
Upvotes: 1