-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined permissions with IdentityServer.Client.ManagePermissions #4591
Comments
Thanks, your temporary solution works for me. Hope it can be solved later in the framework or at least goes into the document to show us how to enable the "IdentityServer.Client.ManagePermissions" policy. |
we can create a package called https://abp.io/package-detail/Volo.Abp.IdentityServer.Application.Contracts var identityServerGroup = context.AddGroup(AbpIdentityServerPermissions.GroupName, L("Permission:IdentityServer"));
var client = identityServerGroup.AddPermission(AbpIdentityServerPermissions.Client.Default, L("Permission:Clients"), MultiTenancySides.Host);
client.AddChild(AbpIdentityServerPermissions.Client.ManagePermissions, L("Permission:ManagePermissions"), MultiTenancySides.Host); |
As I understand, this error occurs when you call I wonder why and how do you call this service like that? This service is called by a UI to manage permissions of a client. For example, we have created such a UI for the ABP Commercial: Do you have such an UI? If so, you should define the permission yourself as you did. |
I am closing this since I support there is no bug here (this is by design). If you explain your case more I will re-consider to open & fix it. Thanks. |
Yes, In my self-created IdentityServer admin interface, the client permissions had changed, throwing this exception, so I got around this problem by overwriting the name of the permissions in my project |
Abp framework version: 3.0
Recurrence of problems:
Source localization:
(
abp/modules/identityserver/src/Volo.Abp.PermissionManagement.Domain.IdentityServer/Volo/Abp/PermissionManagement/IdentityServer/AbpPermissionManagementDomainIdentityServerModule.cs
Line 19 in 42f37c5
Defines the permissions: IdentityServer.Client.ManagePermissions,But it is not registered in the permission definition provider
Current solution:
Stacktrack:
The text was updated successfully, but these errors were encountered: