Use custom IdM identity service in Flowable for user's groups resolution. #198
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
router-authz.js
,getavailableuserstoassign.js
andgettasksview.js
.Other notable changes:
endpoint/getavailableuserstoassign
now should be called asquery
instead ofaction
. The only script that calls this endpoint isgettasksview.js
that incorrectly called it as query, which I think does make sense. Format of the response also changed:{ users: [<users>], assignee: <assignee>
->[<users>]
. Assignee property has not been used anywhere so I don't think it needs to preserved. Task's assignee is always available in the task instance object anyway.endpoint/gettasksview
and custom authz functionscanUpdateTask
andisUserCandidateForTask
no longer use user's authorization roles from security context to compare them with task instance's candidate groups. Instead, task instance resource is queried with appropriate query parameters (taskCandidateUser
,taskCandidateOrAssignee
) and Flowable will decide whether user is a candidate or not based on user'sroles
(reverse attribute for managed role'smembers
attribute).There are also some minor fixes that might be separated to another PR if desired.