Skip to content

Commit fc3fff0

Browse files
committed
Merge branch 'dev'
2 parents 02f1430 + 048a5a2 commit fc3fff0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public class AccessController : Controller
188188
public async Task<ActionResult> Index()
189189
}
190190
```
191-
191+
#
192192
You can also use default UI to for managing roles and assigning roles to users if you don't want to implement them by yourself.
193193

194194
Install the _DynamicAuthorization.Mvc.Ui_ [NuGet package](https://www.nuget.org/packages/DynamicAuthorization.Mvc.Ui)
@@ -206,8 +206,10 @@ services
206206
```
207207

208208
Use `/role` url and to manage roles and `/userrole` to assing roles to users.
209+
209210
![create project](https://raw.githubusercontent.com/mo-esmp/DynamicRoleBasedAuthorizationNETCore/dev/assets/create-role-2.jpg)
210211
212+
#
211213
You can also use a custom `TageHelper` to check whether user has access to view a content or not. create a cutome tag helper that inherits from `SecureContentTagHelper`
212214

213215
```c#
@@ -262,3 +264,5 @@ or
262264
public class ApplicationDbContext : IdentityDbContext<ApplicationUser, ApplicationRole, int> { ... }
263265
public class MySecureContentTagHelper : SecureContentTagHelper<ApplicationDbContext, ApplicationUser, ApplicationRole, int> { ... }
264266
```
267+
#
268+
To implement DynamicAuthorization step by step by yourself checkout [manual branch](https://github.com/mo-esmp/DynamicRoleBasedAuthorizationNETCore/tree/manual).

0 commit comments

Comments
 (0)