question

Tony-Clarke avatar image
0 Votes"
Tony-Clarke asked PramodValavala-MSFT answered

Logic Apps Custom Connector using oAuth application flow

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
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

PramodValavala-MSFT avatar image
0 Votes"
PramodValavala-MSFT answered

@Tony-Clarke 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



image.png (6.3 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.