hi
I'd be happy to provide an answer. :)
how I can remove the permission groups in either document you have suggested so far.
You can try to remove the permission group from your PermissionDefinitionProvider.
public class MyProjectNamePermissionDefinitionProvider : PermissionDefinitionProvider
{
public override void Define(IPermissionDefinitionContext context)
{
var myGroup = context.AddGroup(MyProjectNamePermissions.GroupName);
//Define your own permissions here. Example:
//myGroup.AddPermission(MyProjectNamePermissions.MyPermission1, L("Permission:MyPermission1"));
// var identityGroup = context.GetGroupOrNull(IdentityPermissions.GroupName);
// if (identityGroup != null)
// {
// context.RemoveGroup(identityGroup.Name);
// }
}
private static LocalizableString L(string name)
{
return LocalizableString.Create<MyProjectNameResource>(name);
}
}
hi
try use repository which provides ABP so GetAsync, GetListAsync, FindAsync etc methods.
Please share the code of your blazor component.
Thanks.
Sure. I will share the code.
hi
We will fix this in the next rc or stable version.
Your ticket has been refunded.
hi
Are there any logs on the upstream website(http://172.16.220.21:44355/api/abp/application-configuration")?
hi
The license team wants to get a username&password and project to reproduce the problem.
can you share them? liming.ma@volosoft.com
Thanks.
hi
For the endpoints that have [Authorize], you can refer to
https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.Authorization/Volo/Abp/Authorization/AbpAuthorizationModule.cs#L35-L36
https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.Authorization.Abstractions/Volo/Abp/Authorization/PermissionRequirement.cs
https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.Authorization.Abstractions/Volo/Abp/Authorization/PermissionRequirementHandler.cs
https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.Authorization/Volo/Abp/Authorization/AbpAuthorizationPolicyProvider.cs#L28
For the endpoints that allow anonymity, there is no other way.
hi
You can check out these two documents to learn how to define permissions and initialize some permissions for tenants.
https://docs.abp.io/en/abp/latest/Authorization https://docs.abp.io/en/abp/latest/Data-Seeding
Can I disable the out-of-the-box admin role?
You can override the IdentityDataSeeder to disable the admin role.
hi
You can add ASP Net Core middleware that checks whether the requested endpoint are specific URLs if the current user name is ExternalUser.
hi
What is your Lepton package version?
You can try to use Version="2.2.*-*" /> as lepton package.