question

AmyZ-5475 avatar image
0 Votes"
AmyZ-5475 asked MayankBargali-MSFT commented

Logic App calls another tenant's API

Hi, we want to know how to configure the logic app if it wants to call a API under another tenant's AAD oauth. Here's the scenario. We're at the tenant B, and another tenant A.Logic A tries to call APIs on APIM.

103756-image.png


At tenant B we use App Registration > Application Permission to define the oauth. At the moment most of our API consumers are .NET and Python systems so they just use oauth authorization endpoint to get token and proceed. Not sure how Logic App B can achieve this in an elegant way ?

Thank you

azure-logic-apps
image.png (23.1 KiB)
· 2
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.

@AmyZ-5475 Can you confirm my understanding if you want logic app A to APIM integration or APIM to logic B integration?
Muti tenant environment is not supported when you are making call directly from Logic app A to logic app B.

0 Votes 0 ·

@MayankBargali-MSFT Thank you for the response. Logic A is trying to call the API published on Tenant B's APIM. So Logic A does not direct call Logic B, there's a middleman APIM between them. And I'm wondering how Logic A can configure to meet APIM's AAD oauth settings. This is the question. Hope it's more clear to you.

0 Votes 0 ·

1 Answer

MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered MayankBargali-MSFT commented

@AmyZ-5475 In that case you can call the leverage the HTTP connector to call the APIM endpoint in Tenant B using the Authentication as "Active Directory Oauth" and pass the clientID, secret and other details to authenticate the APIM resource.

· 2
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.

@MayankBargali-MSFT sorry I overlook this response for a while. It really works. Many thanks

0 Votes 0 ·

@AmyZ-5475 Thanks for your response. I have converted my comment to answer. Feel free to "Accept as Answer" so it helped so that it can help others in the community looking for help on similar topics.

1 Vote 1 ·