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

Rushit Ajudiya 146 Reputation points
2022-07-08T06:14:08.817+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.
0 comments No comments
{count} votes

Answer accepted by question author
  1. JananiRamesh-MSFT 29,436 Reputation points Moderator
    2022-07-08T19:00:24.247+00:00

    @Rushit Ajudiya 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

    219013-image.png

    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

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.