permissions differentiate by roles, but the user belong one specific tenant if i want all the tenant user can one set of role. how to reach that. thanks.
[attachment=2:3qb2necw]tryme.jpg[/attachment:3qb2necw][attachment=1:3qb2necw]save.jpg[/attachment:3qb2necw][attachment=0:3qb2necw]mask.jpg[/attachment:3qb2necw]
totally can upload 3 files, i will upload rest files after this post. I have no idea about this issue, it's very strange. if you can give me any suggest that will be very nice. thank you.
First, i am very exciting to have this framework, i even can't sleep well when i start studying ABP. It's a great work, i want to express my thanks here.
I have seen many times of this two documents [[http://www.aspnetboilerplate.com/Pages/Documents/Authorization])] [[http://www.aspnetboilerplate.com/Pages/Documents/Abp-Session])]
I want to develop Authentication and Authorization in my project. we have a login page, once we get the user credential, how we store it into AbpSession with a specific field role ='Admin' and how we can define a attribute to limit the access who's role != 'Admin'.
I studied the Authorization document, but still confuse below example, why it can be defined.
public class MyAuthorizationProvider : AuthorizationProvider
{
public override void SetPermissions(IPermissionDefinitionContext context)
{
var administration = context.CreatePermission("Administration");
var userManagement = administration.CreateChildPermission("Administration.UserManagement");
userManagement.CreateChildPermission("Administration.UserManagement.CreateUser");
var roleManagement = administration.CreateChildPermission("Administration.RoleManagement");
}
}
and where to define the user's permission?
thanks, MC