Authentication and Permission Based Authorization in ASP.NET 5 MVC – Part 03

Hi, In previous part, we learned implementing login, registration, basic authorization. Today, we will see how to seed default user, default roles in database and add hardcoded permissions to default super role. Seeding something to database means, when application first runs, it will try to insert some data to database that are required. Default user will be a super user. The user will have all roles. So, all roles will be added to super user. Among the roles, there will be role SuperAdmin . SuperAdmin role will have all permissions.