Dynamic Role-Based Authorization in ASP.NET Core 2.0
관련 자료
You already know how role-based authorization works in ASP.NET Core but what if you don't want hardcode roles in authorization attribute or create roles later and specify in which controller and action it has access without touching source code?
Introduction
You already know how role-based authorization works in ASP.NET Core.
Hide Copy Code
[Authorize(Roles = "Administrator")] public class SomeController : Controller { }
But what if you don't want hardcode roles in authorization attribute or create roles later and specify in which controller and action it has access without touching source code?
Using the Code
Let's begin our journey. Create ASP.NET Core Web Application project and change authentication to Individual User Accounts.
'ASP.NET MVC' 카테고리의 다른 글
GraphQL In .NET Core Web API With Entity Framework Core (0) | 2019.05.05 |
---|---|
ASP.NET 5 MVC6에서 Glimpse 사용하기 (0) | 2016.07.28 |
ASP.NET 5 & MVC 6 관련 링크 (0) | 2016.06.08 |
브라우저에서 Javascript를 이용하여 NTLM으로 로그인 하기 (0) | 2014.09.15 |
[ASP.NET MVC] NHibernate를 이용한 CRUD Operation (0) | 2014.08.26 |