I'm working on integrating an internal API into Power Platform using a Custom Connector that connects through an on-premises data gateway. The API requires authentication via an Authorization: Bearer <token> header, and the token is dynamically generated in a previous step of the process.
Here’s the challenge:
- I can't set the
Authorization header directly in the request definition I get an error saying this header is not allowed.
- Using the Security section with
API Key and setting the parameter name to Authorization and value to Bearer <token> doesn’t work either Power Platform seems to ignore it and sends a default header.
- The standard HTTP connector works fine with the token, but it doesn’t support routing through the gateway, which is required in my case.
Has anyone found a way to:
- Dynamically pass a Bearer token in the header for each request?
- Configure a Custom Connector to work with the gateway and still allow dynamic token injection?
Any help or guidance would be greatly appreciated!