bamaer opened a new issue, #9551:
URL: https://github.com/apache/hop/issues/9551

   ### What would you like to happen?
   
   A REST connection can set an authentication header, but no other headers. 
Headers that every request to an API needs have to be added to each REST 
transform's header fields, and the connection test 
([RestConnection.java:438](https://github.com/apache/hop/blob/39b3d636b2e003ab9e857eb385f549cbc3e9248c/plugins/misc/rest/src/main/java/org/apache/hop/metadata/rest/RestConnection.java#L438))
 cannot send them.
   
   Example: the Ironclad public API requires an `x-as-user-email` or 
`x-as-user-id` header on every request made with an OAuth 2 client-credentials 
token. A REST connection for Ironclad fails its own connection test, and each 
transform that uses it has to repeat the header.
   
   Proposal:
   
   - Add a table of static request headers (name, value, with variable support) 
to the REST connection.
   - Send them on every request made through the connection, including the 
connection test. A header with the same name set on the transform or by an 
input row wins, as the authentication headers already do.
   - Add the table to the REST connection editor and the docs.
   
   Tests: an integration test against an endpoint that answers 403 without the 
header and 200 with it, both from a REST transform and from the connection test.
   
   ### Issue Priority
   
   Priority: 3
   
   ### Issue Component
   
   Component: Metadata, Component: Transforms
   


-- 
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]

Reply via email to