question

NiraliShah-7334 avatar image
0 Votes"
NiraliShah-7334 asked JananiRamesh-MSFT answered

How to set custom authorization header in request section of logic app custom connector

While creating a custom connector for API calls which are using access token to authorize, it is required to set custom authorization header in custom connector action as we don't have suitable authentication type which is provided by default. So we need to get the token using client credentials only and set it in Authorization header but it shows an error if we use "Authorization" header in request section and won't allow to save the connector. So can you suggest any way to set Authorization header and pass bearer token into that header at runtime in custom connector or any other alternatives to achieve this task?

azure-logic-appsmicrosoft-sentinel
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JananiRamesh-MSFT avatar image
1 Vote"
JananiRamesh-MSFT answered

@NiraliShah-7334 Thanks for reaching out. From the description I understand that you wanted to set Authorization header in request section of logic app custom connector with the token generated using client credential flow.

Currently, client credentials grant type is not supported by custom connectors please refer this document: https://docs.microsoft.com/en-us/connectors/custom-connectors/connection-parameters#oauth-20
You can also leave your feedback on our feedback page https://feedback.azure.com/d365community/forum/cb47c115-7926-ec11-b6e6-000d3a4f032c?filter=top

as an alternative you can use Http action with request url and with the required authorization type

![218996-image.png][1]



please let me know incase of further queries, I would be happy to assist you.


image.png (125.8 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.