question

SanjayPal-1812 avatar image
0 Votes"
SanjayPal-1812 asked SanjayPal-7956 answered

Azure logic App Custom connector OAuth2 AAD grant_type password

I am trying to create an Azure Logic Apps Custom Connector and using OAuth2 with Azure Active Directory.
The service I am trying to subscribe to is UTS (user to service) and required grant_type "password".
It is working as expected when I try these settings from Postman but facing a problem in generating tokens from the custom connector.

Any help will be appreciated.
Thanks.

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.

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

@SanjayPal-1812 The password grant_type isn't supported with custom connectors and is not recommended for scenarios other than cases where the application is a first-party application (Official Twitter Mobile App by Twitter, for example).

You would have to work around this by proxying requests through another service like Azure APIM that could have the required username/password configured in policies, and then just use the APIM Connector in Logic Apps to call your operations.

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.

SanjayPal-7956 avatar image
0 Votes"
SanjayPal-7956 answered

@PramodValavala-MSFT , thank you very much for the response. I will try implementing solution suggested by you and will update this thread accordingly.

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.