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

Nirali Shah 146 Reputation points
2022-07-07T19:05:24.007+00:00

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 Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,873 questions
0 comments No comments
{count} vote

Accepted answer
  1. JananiRamesh-MSFT 21,861 Reputation points
    2022-07-08T18:56:54.967+00:00

    @Nirali Shah 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://learn.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.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful