Hi
Can you share the full steps to reproduce? thanks.
Hi,
There are two things, you mixed them up
You can check this: https://support.abp.io/QA/Questions/2684/IAbpClaimsPrincipalContributor-doesn%27t-work-in-microservice-project
Hi,
Ok, please email me when you are free.
Hi,
It will fail when changing the role name, but after refreshing the page everything works fine.
Of course, it works for me.
Method Define of class PermissionDefinitionProvider is not an async method.
You can try this:
public override void Define(IPermissionDefinitionContext context)
{
var permissionService = context.ServiceProvider.GetRequiredService<IPermAppService>();
var myGroup = context.AddGroup(VoloTestPermissions.GroupName);
myGroup.AddPermission(VoloTestPermissions.Dashboard.Host, L("Permission:Dashboard"), MultiTenancySides.Host);
myGroup.AddPermission(VoloTestPermissions.Dashboard.Tenant, L("Permission:Dashboard"), MultiTenancySides.Tenant);
var permissions = AsyncHelper.RunSync(()=> permissionService.GetPermissionListAsync(new GetPermissionInput())) ;
//foreach (var perm in permissions)
//{
// myGroup.AddPermission($"{perm.Name}.Allow", L($"{perm.Name}.Allow"));
// myGroup.AddPermission($"{perm.Name}.Deny", L($"{perm.Name}.Deny"));
}
Thanks, I will check it out.