You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+89-4Lines changed: 89 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,4 @@
1
-
# Dynamic Role-Based Authorization in ASP.NET Core 2.0
2
-
To view code sample for below description switch to [master branch](https://github.com/mo-esmp/DynamicRoleBasedAuthorizationNETCore/tree/master).
1
+
# Dynamic Role-Based Authorization in ASP.NET Core 2.2 and 3.x [
3
2
4
3
You already know how role-based authorization wokrs in ASP.NET Core.
5
4
@@ -10,9 +9,95 @@ public class AdministrationController : Controller
10
9
}
11
10
```
12
11
13
-
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 ?
12
+
But what if you don't want hardcode roles on on the `Authorize` attribute or create roles later and specify in which controller and action it has access without touching source code?
13
+
14
+
**DynamicAuthorization** helps you authorize users without hardcoding role(s) on the `Authorize` attribute with minimum effort. Keep in mind that DynamicAuthorization is built at the top of ASP.NET Core Identity and use identity mechanism formanaging roles and authorizing users.
15
+
16
+
Install the _DynamicAuthorization.Mvc.Core_[NuGet package](https://www.nuget.org/packages/DynamicAuthorization.Mvc.Core) and _DynamicAuthorization.Mvc.JsonStore_[NuGet package](https://www.nuget.org/packages/DynamicAuthorization.Mvc.JsonStore)
0 commit comments