aswathitv opened a new issue, #2309:
URL: https://github.com/apache/incubator-kie-issues/issues/2309
**Adding new enhancements to the REST WorkItemHandler implementation :**
- Secure REST endpoint support
- Enhanced REST functionality : Support for custom headers, query
parameters, and JSON request/response bodies
- Token propogation functionality
- Primary: User token propagation - forward incoming JWT tokens to
outbound REST calls
- Secondary: Technical token fallback - use per REST task token
configuration as a fallback option.
- Configuration Properties: Below format is used to configure the token
in env or application.properties
Per REST Task - Default/technical token for scenarios without user
context
kogito.processes...access_token -> If taskName presesnt in the
.wid file.
kogito.processes...access_token -> If taskId not present in the
.wid file.
**Implementation ideas**
REST WorkItemHandler Module:
- Supports HTTP methods: GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS
- Custom headers and query parameters support
- JSON request/response handling
- Integration with authentication decorators
- Framework-Specific Implementations
- Token Resolution Priority:
Security Context → SecurityIdentity + TokenCredential
Config: kogito.processes...access_token
Config: kogito.processes...access_token
REST Task Node:
- Dedicated node for handling REST calls.
- Properties panel with option to add Url, Method, Protocol, Host, Port,
Request timeout, Header, Query Parameters and Access Token Acquisition Strategy.
- Emulates test functionality from the properties panel itself.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]