Open houssain-barouni opened 3 weeks ago
@ralfpuchert, just a few questions/notes:
With
Add permissions check in v1 API
Do I assume correctly that the @PreAuthorize("hasPermission(...)")
is meant?
The following queries needs to be rewritten:
This refers to the `PermissionService, right?
... and by that, the permissions won't retrieved anymore from the session/authentication?
Additionally, to make sure, what about checking access to the Operate UI? Will this be covered by the Identity stream (@Ben-Sheppard)?
Overview
Operate uses
PermissionService
to check permissions onprocess definitions
anddecision definitions
.PermissionService
uses Identity SDK for retrieving authorizations. In current implementation all authorizations are retrieved and then filtered by application logic.From 8.7 on the Identity SDK is not available anymore.
PermissionService
needs to retrieve authorizations fromAuthorizationService
.Retrieving a list of
AuthorizationEntity
can be done for example:Components for permissions:
Proposal
PermissionService
implements its methods in terms of components mentioned aboveIdentityPermission
withPermissionType
Tasks
Adjust types and mapping of types:
The following queries needs to be rewritten:
Add missing checks: