You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "rajalakshmys-27 (via GitHub)" <gi...@apache.org> on 2026/01/20 06:02:00 UTC

[I] Authenticated User Not Resolved When Impersonation Params Missing [incubator-kie-issues]

rajalakshmys-27 opened a new issue, #2215:
URL: https://github.com/apache/incubator-kie-issues/issues/2215

   Description: When kogito.security.auth.enabled=true and a user is authenticated via JWT, the backend incorrectly returns an empty identity if no impersonation params (user, groups) are provided. This results in empty transition lists ([]).
   
   Scenario :
   
   Business Service with hiring process, HR Interview task (Actors empty, Groups=HR).
   Identity Provider: Keycloak, user jdoe in HR group.
   
   Case 1: impersonation NOT set 
   
   (kogito.security.auth.impersonation.allowed-for-roles)
   
   transitions?user=jdoe → valid transitions.
   transitions (no params, JWT only) → valid transitions.
   Extra params ignored.
   
   Case 2: impersonation allowed for HR
   
   (kogito.security.auth.impersonation.allowed-for-roles=HR){}
   
   transitions?user=jdoe → 403.
   transitions (no params, JWT only) → empty list [].
   transitions?user=jdoe&group=HR → valid transitions.
   user only → 403.
   group only → empty list.
   
   Root Cause: The backend generates an empty identity when no impersonation params are provided, instead of using the authenticated JWT identity.
   
   Expected Behavior:
   
   When no impersonation params are provided, backend should return the current authenticated identity from the JWT token.
   Only when impersonation params are explicitly provided should backend validate impersonation roles and apply them.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] Authenticated User Not Resolved When Impersonation Params Missing [incubator-kie-issues]

Posted by "josedee (via GitHub)" <gi...@apache.org>.
josedee closed issue #2215: Authenticated User Not Resolved When Impersonation Params Missing
URL: https://github.com/apache/incubator-kie-issues/issues/2215


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org