0
tugrulkarakaya created
Hi,
User has all rights on Host. An API (PUT) requires a special permission which user also has this permission) is not called by the client and return HTTP 405 .
This is the AppService I'd like to call [AbpAuthorize(AppPermissions.ApiClient_WhatsappChannel_Edit)] public async Task UpdateIId(UpdateIIDWhatsappChannelDto input) { ... } if I remove Authorization Attribute it is called succesfully. But user has that permisson. see records got from system;
{
"result": {
"permissions": [
{
"parentName": "Pages",
"name": "Pages.Administration",
"displayName": "Administration",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Administration",
"name": "Pages.Administration.AuditLogs",
"displayName": "Audit logs",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Tenants",
"name": "Pages.Tenants.ChangeFeatures",
"displayName": "Changing features",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Administration.Users",
"name": "Pages.Administration.Users.ChangePermissions",
"displayName": "Changing permissions",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Administration.Languages",
"name": "Pages.Administration.Languages.ChangeTexts",
"displayName": "Changing texts",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": null,
"name": "ApiClient",
"displayName": "Client",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Labels",
"name": "Pages.Labels.Create",
"displayName": "Create new label",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.SmartMessages",
"name": "Pages.SmartMessages.Create",
"displayName": "Create new smart message",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Subscribers",
"name": "Pages.Subscribers.Create",
"displayName": "Create new subscriber",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.SubscriberLabels",
"name": "Pages.SubscriberLabels.Create",
"displayName": "Create new subscriber label",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.WhatsappChannels",
"name": "Pages.WhatsappChannels.Create",
"displayName": "Create new whatsapp channel",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.WhatsappMessages",
"name": "Pages.WhatsappMessages.Create",
"displayName": "Create new whatsapp message",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Editions",
"name": "Pages.Editions.Create",
"displayName": "Creating new edition",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Administration.Languages",
"name": "Pages.Administration.Languages.Create",
"displayName": "Creating new language",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Administration.Roles",
"name": "Pages.Administration.Roles.Create",
"displayName": "Creating new role",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Tenants",
"name": "Pages.Tenants.Create",
"displayName": "Creating new tenant",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Administration.Users",
"name": "Pages.Administration.Users.Create",
"displayName": "Creating new user",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Administration",
"name": "Pages.Administration.Host.Dashboard",
"displayName": "Dashboard",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Labels",
"name": "Pages.Labels.Delete",
"displayName": "Delete label",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.SmartMessages",
"name": "Pages.SmartMessages.Delete",
"displayName": "Delete smart message",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Subscribers",
"name": "Pages.Subscribers.Delete",
"displayName": "Delete subscriber",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.SubscriberLabels",
"name": "Pages.SubscriberLabels.Delete",
"displayName": "Delete subscriber label",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.WhatsappChannels",
"name": "Pages.WhatsappChannels.Delete",
"displayName": "Delete whatsapp channel",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.WhatsappMessages",
"name": "Pages.WhatsappMessages.Delete",
"displayName": "Delete whatsapp message",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Editions",
"name": "Pages.Editions.Delete",
"displayName": "Deleting edition",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Administration.Languages",
"name": "Pages.Administration.Languages.Delete",
"displayName": "Deleting language",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Administration.Roles",
"name": "Pages.Administration.Roles.Delete",
"displayName": "Deleting role",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Tenants",
"name": "Pages.Tenants.Delete",
"displayName": "Deleting tenant",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Administration.Users",
"name": "Pages.Administration.Users.Delete",
"displayName": "Deleting user",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages",
"name": "Pages.DemoUiComponents",
"displayName": "Demo UI Components",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Labels",
"name": "Pages.Labels.Edit",
"displayName": "Edit label",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.SmartMessages",
"name": "Pages.SmartMessages.Edit",
"displayName": "Edit smart message",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Subscribers",
"name": "Pages.Subscribers.Edit",
"displayName": "Edit subscriber",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.SubscriberLabels",
"name": "Pages.SubscriberLabels.Edit",
"displayName": "Edit subscriber label",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.WhatsappChannels",
"name": "Pages.WhatsappChannels.Edit",
"displayName": "Edit whatsapp channel",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "ApiClient.WhatsappChannel",
"name": "ApiClient.WhatsappChannel.Edit",
"displayName": "Edit whatsapp channel",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.WhatsappMessages",
"name": "Pages.WhatsappMessages.Edit",
"displayName": "Edit whatsapp message",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "ApiClient.WhatsappMessages",
"name": "ApiClient.WhatsappMessages.Edit",
"displayName": "Edit whatsapp message",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Editions",
"name": "Pages.Editions.Edit",
"displayName": "Editing edition",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Administration.Languages",
"name": "Pages.Administration.Languages.Edit",
"displayName": "Editing language",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Administration.Roles",
"name": "Pages.Administration.Roles.Edit",
"displayName": "Editing role",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Tenants",
"name": "Pages.Tenants.Edit",
"displayName": "Editing tenant",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Administration.Users",
"name": "Pages.Administration.Users.Edit",
"displayName": "Editing user",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages",
"name": "Pages.Editions",
"displayName": "Editions",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Administration",
"name": "Pages.Administration.HangfireDashboard",
"displayName": "Hangfire dashboard",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages",
"name": "Pages.Labels",
"displayName": "Labels",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Administration",
"name": "Pages.Administration.Languages",
"displayName": "Languages",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Tenants",
"name": "Pages.Tenants.Impersonation",
"displayName": "Login for tenants",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Administration.Users",
"name": "Pages.Administration.Users.Impersonation",
"displayName": "Login for users",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Administration",
"name": "Pages.Administration.Host.Maintenance",
"displayName": "Maintenance",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Administration.OrganizationUnits",
"name": "Pages.Administration.OrganizationUnits.ManageMembers",
"displayName": "Managing members",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Administration.OrganizationUnits",
"name": "Pages.Administration.OrganizationUnits.ManageOrganizationTree",
"displayName": "Managing organization tree",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Administration",
"name": "Pages.Administration.OrganizationUnits",
"displayName": "Organization Units",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": null,
"name": "Pages",
"displayName": "Pages",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Administration",
"name": "Pages.Administration.Roles",
"displayName": "Roles",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.WhatsappMessages",
"name": "Pages.WhatsappMessages.SendIndividualMessage",
"displayName": "Send individual message",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.WhatsappMessages",
"name": "Pages.WhatsappMessages.SendToLabel",
"displayName": "Send message to subscriber assigned to a label",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.WhatsappMessages",
"name": "Pages.WhatsappMessages.SendToAll",
"displayName": "Send messageto all subscriber",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Administration",
"name": "Pages.Administration.Host.Settings",
"displayName": "Settings",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages",
"name": "Pages.SmartMessages",
"displayName": "Smart messages",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages",
"name": "Pages.SubscriberLabels",
"displayName": "Subscriber labels",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages",
"name": "Pages.Subscribers",
"displayName": "Subscribers",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages",
"name": "Pages.Tenants",
"displayName": "Tenants",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Administration",
"name": "Pages.Administration.Users",
"displayName": "Users",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages.Administration",
"name": "Pages.Administration.UiCustomization",
"displayName": "Visual Settings",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages",
"name": "Pages.WhatsappChannels",
"displayName": "Whatsapp channels",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "ApiClient",
"name": "ApiClient.WhatsappChannel",
"displayName": "Whatsapp channels",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "Pages",
"name": "Pages.WhatsappMessages",
"displayName": "Whatsapp messages",
"description": null,
"isGrantedByDefault": false
},
{
"parentName": "ApiClient",
"name": "ApiClient.WhatsappMessages",
"displayName": "Whatsapp messages",
"description": null,
"isGrantedByDefault": false
}
],
"grantedPermissionNames": [
"Pages",
"ApiClient",
"Pages.Labels",
"Pages.Labels.Create",
"Pages.Labels.Edit",
"Pages.Labels.Delete",
"Pages.WhatsappMessages",
"Pages.WhatsappMessages.Create",
"Pages.WhatsappMessages.Edit",
"Pages.WhatsappMessages.Delete",
"Pages.WhatsappMessages.SendIndividualMessage",
"Pages.WhatsappMessages.SendToAll",
"Pages.WhatsappMessages.SendToLabel",
"Pages.SubscriberLabels",
"Pages.SubscriberLabels.Create",
"Pages.SubscriberLabels.Edit",
"Pages.SubscriberLabels.Delete",
"Pages.SmartMessages",
"Pages.SmartMessages.Create",
"Pages.SmartMessages.Edit",
"Pages.SmartMessages.Delete",
"Pages.Subscribers",
"Pages.Subscribers.Create",
"Pages.Subscribers.Edit",
"Pages.Subscribers.Delete",
"Pages.WhatsappChannels",
"Pages.WhatsappChannels.Create",
"Pages.WhatsappChannels.Edit",
"Pages.WhatsappChannels.Delete",
"Pages.DemoUiComponents",
"Pages.Administration",
"Pages.Administration.Roles",
"Pages.Administration.Roles.Create",
"Pages.Administration.Roles.Edit",
"Pages.Administration.Roles.Delete",
"Pages.Administration.Users",
"Pages.Administration.Users.Create",
"Pages.Administration.Users.Edit",
"Pages.Administration.Users.Delete",
"Pages.Administration.Users.ChangePermissions",
"Pages.Administration.Users.Impersonation",
"Pages.Administration.Languages",
"Pages.Administration.Languages.Create",
"Pages.Administration.Languages.Edit",
"Pages.Administration.Languages.Delete",
"Pages.Administration.Languages.ChangeTexts",
"Pages.Administration.AuditLogs",
"Pages.Administration.OrganizationUnits",
"Pages.Administration.OrganizationUnits.ManageOrganizationTree",
"Pages.Administration.OrganizationUnits.ManageMembers",
"Pages.Administration.UiCustomization",
"Pages.Administration.Host.Settings",
"Pages.Administration.Host.Maintenance",
"Pages.Administration.HangfireDashboard",
"Pages.Administration.Host.Dashboard",
"Pages.Editions",
"Pages.Editions.Create",
"Pages.Editions.Edit",
"Pages.Editions.Delete",
"Pages.Tenants",
"Pages.Tenants.Create",
"Pages.Tenants.Edit",
"Pages.Tenants.ChangeFeatures",
"Pages.Tenants.Delete",
"Pages.Tenants.Impersonation",
"ApiClient.WhatsappChannel",
"ApiClient.WhatsappChannel.Edit",
"ApiClient.WhatsappMessages",
"ApiClient.WhatsappMessages.Edit"
]
},
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"__abp": true
}
2 Answer(s)
-
0
it is resolved somehow. I do not know to reason but issue is not valid anymore.
-
0
@tugrulkarakaya thank you for the feedback. This seems like a caching issue.