Logic Apps Custom Connector using oAuth application flow

Tony 1 Reputation point
2021-04-19T10:46:34.65+00:00

Hi,

I'm trying to define a custom connector in Logic Apps which I've created using a Postman v1 collection file. When first trying to authenticate it's giving me the following error: The requested resource does not support http method 'GET'

Using the swagger editor I can see that the oAuth flow has been set to: flow: accessCode. If I change this to flow: application everything works fine, using the swagger editor to test the connect. However, when I try and save my changes (click 'Update Connector') the flow is reverted back to application.

It's a third party endpoint so making any changes to it would be challenging to say the least.

Is there something I'm missing? Does Logic Apps not support Application flows? Is there some other approach I can try?

Ok, so I've had a look on the forums and this post seems to answer my question (i.e. it's not supported...): https://social.msdn.microsoft.com/Forums/en-US/cdefc441-03ec-444e-ad9c-b1b324f8ace5/custom-connector-using-only-client-credentials?forum=azurelogicapps

Is it really the case that Logics Apps still doesn't support the Application flow? Not only that, there's no documentation to show this limitation? The post above was 2 years ago....

Ah well, Logic Apps falls at the first hurdle :(

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

1 answer

Sort by: Most helpful
  1. Pramod Valavala 20,656 Reputation points Microsoft Employee Moderator
    2021-04-20T05:55:55.107+00:00

    @Tony I believe this is still the case. Feel free to up vote this feature request for this to gain more traction.

    An approach you could try here is to import your OpenAPI Spec into Azure APIM and leverage policies for the client credentials flow (sample). Then instead of the Custom Connector, you could directly use the Azure APIM Connector that will list your imported APIs.

    Here is an operation from petstore imported into APIM
    89297-image.png

    0 comments No comments

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.