Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Connector Development
Unanswered

Custom Connector OAuth Redirect

(2) ShareShare
ReportReport
Posted on by 130

I am creating a custom connector to an internal API which requires OAuth security.

 

On the security page, I enter all the information as needed and when the connector is saved, it will general a Redirect URL (https://global.consent.azure-apim.net/redirect), which is then added to the valid call back list on the Azure App Registration list.

 

However, when I go to test the connector, I get the error AADSTS500113: No reply address is registered for the application

 

Digging a bit deeper, in the URL of the error page, I can see that there's an embedded redirect (in red)

 

https://login.microsoftonline.com/common/oauth2/authorize?response_type=code&client_id=...&redirect_uri=https%3A%2F%2Femea.flow.microsoft.com%2Foauth2-redirect.html&

 

When this is added to the App Registration valid redirect list, it then goes the that URL but this results in a 404 error page.

 

The connector "saves" OK, but it cannot be tested, and when it is implemented in a flow, it fails with a 401 error code and the error message "Invalid or missing token"

 

So, this is a bit of a show-stopper at the moment as i cannot create custom data connectors.

  • pgbrady Profile Picture
    11 on at
    Re: Custom Connector OAuth Redirect

    Well, I sort of did and didn't. The problem, specifically with Constant Contact, is that they don't support the necessary OAuth flow for unattended authentication. This causes the connection in Flow to break after just a couple of hours and then I have to sign on again manually to re-establish a working connection. 

     

    The specific problem I was having with just getting the call to work is that my Base URL setting needed a trailing slash, so instead of /v3 it should have been /v3/. Really simple problem, but there were zero helpful errors generated that I could find that would point to the issue. 

  • Community Power Platform Member Profile Picture
    on at
    Re: Custom Connector OAuth Redirect

    how did you get it to work?

  • pgbrady Profile Picture
    11 on at
    Re: Custom Connector OAuth Redirect

    Thanks very much for the reply. I think I finally got all of the correct settings to get the API working. Keeping my fingers crossed that it keeps working. I'm actually thinking of creating a YouTube video showing how I did it. I'm using the Constant Contact API and I couldn't find an example of how to do this anywhere. Was driving me nuts. 

  • Chris Hammond Profile Picture
    130 on at
    Re: Custom Connector OAuth Redirect

    IIRC I think the issue was that as the Custom Connector uses Client / Secret to communicate to underlying API, the user account of the connection reference to the custom connector was not authorised to use the [Client] App Registration 

     

     

     

  • pgbrady Profile Picture
    11 on at
    Re: Custom Connector OAuth Redirect

    Did anyone ever figure this out? I'm having the exact same problem. 

  • Stephan_Swinfor Profile Picture
    2 on at
    Re: Custom Connector OAuth Redirect

    @shyamsu any updates available? I am also running into this problem where the redirect is not using the global URI, and is instead going to https://us.flow.microsoft.com/oauth2-redirect.html where it gives a 404.

  • shyamsu Profile Picture
    on at
    Re: Custom Connector OAuth Redirect

    Great to know that you are unblocked. I am following up on why global redirect didnt work for you. Will post on this thread once i have more info.

  • Chris Hammond Profile Picture
    130 on at
    Re: Custom Connector OAuth Redirect

    I did have https://global.consent.azure-apim.net/redirect in the redirect list... However, Power Automate is not redirecting back to that location, it is redirecting to https://unitedkingdom.flow.microsoft.com/oauth2-redirect.html (which returns a 404 error)

     

    I have gone through Microsoft Support and have since spoken to a team member and whilst I do not believe the underlying issue is resolved, I do have things working now.

  • shyamsu Profile Picture
    on at
    Re: Custom Connector OAuth Redirect

    You just need https://global.consent.azure-apim.net/redirect

    For example

     
     

    Screenshot 2020-11-03 115750.png

     

    Can you please share similar snapshot from you app?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Featured topics