Click here to Skip to main content
15,890,512 members
Articles / Web Development / ASP.NET / ASP.NET Core

Dynamic Role-Based Authorization in ASP.NET Core 2.0

Rate me:
Please Sign up or sign in to vote.
4.94/5 (13 votes)
17 Jun 2018CPOL3 min read 51.1K   34  
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?

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer Afranet
Iran (Islamic Republic of) Iran (Islamic Republic of)
I'm software developer with several years of experience developing software mainly working on web platforms and new technologies.

Comments and Discussions