'Invalid connection' while trying to use OAuth 2.0 auth for a Custom Connector

Carlos Aguado Garcia 0 Reputation points
2023-10-17T13:58:20.7366667+00:00

We have a custom connector which is meant to be use by clients in their logic apps. We would need that the authentication is OAuth 2.0 but then when i try to use the connector in a logic app, I keep getting an 'Invalid connection'. Any idea of why's that?
We are setting all mandatory parameter values, ClientID, ClientSecret, AuthorizationURL, TokenURL and RefreshURL.

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,448 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JananiRamesh-MSFT 29,236 Reputation points
    2023-10-18T05:48:22.2033333+00:00

    @Carlos Aguado Garcia Thanks for reaching out. From the description I understand that you’re having trouble with OAuth 2.0 authentication in your custom connector.

    Make sure that the client ID, client secret, authorization URL, token URL, and refresh URL are all correct. These should match the settings of the OAuth 2.0 server that you’re trying to authenticate with.

    The problem usually lies within the configuration of the custom connector or the third-party service you’re using. You can walk through the OAuth flow with the third-party service through Postman. Call the token endpoint using the same client ID, client secret, and redirect URI (if used) as the custom connector. Verify that the endpoint returns an access token.

    please refer: https://learn.microsoft.com/en-us/connectors/custom-connectors/troubleshoot-oauth2#troubleshoot-the-oauth-flow

    it may also be helpful to review the logs for your custom connector and the logic app to see if there are any error messages that can provide more information about the issue.

    If you still observe the errors, I suggest you open a support ticket to our Azure Support team. They will help you in configuring Do you have a support plan for this subscription? If not, I can have a one-time free support ticket created to have this specific issue investigated. I will share the details in a separate message after you confirm.

    Please let me know if you have any further queries.

    0 comments No comments

Your answer

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