Show code.
https://gist.github.com/hikalkan/67469e05475c2d18cb88
Do you mean MVC 5?
Yes, if you want to use the code from the documentation. Otherwise, you can write your own join query.
You can set SendAllExceptionsToClients = true
.
https://aspnetboilerplate.com/Pages/Documents/Startup-Configuration#configuring-modules
var organizationUnits = await _organizationUnitRepository
.GetAllIncluding(ou => ou.Children)
.Where(ou => organizationUnitIds.Contains(ou.Id))
.ToListAsync();
Throw UserFriendlyException
.
https://aspnetboilerplate.com/Pages/Documents/Handling-Exceptions#showing-exceptions
You can set Name
when creating Role
.
You should get users in Role
by Name
, not DisplayName
.
Continued in aspnetboilerplate/aspnetboilerplate#4300.
You should not change claims dynamically. Do it when ClaimsPrincipal
is created:
https://gist.github.com/ismcagdas/6f2a9a3b5d7b907cb8d94a72124d59a1