I want to add user authorization and authentication in an asp.net mvc project. First, I am the base code of the Entity Framework. Now I want to create a default user role and a default role for him. To do this, I want to create an administrator role, but this prevents me from having the user and role Named admin and Admin Exists already. But when I see databases in my table, such as AspNetUSers, Role, etc., I did not find any Admin name there. So how can I do this?
If the administrator role and users are built-in, then where is the password. And also, how can I create some other default users and roles every time my application starts first.
I use MVC 5, not mvc 4. There are differences for both of these two.
Thanks,
Abdus Salam Azad
source share