Hi,
I'm building a web app that uses the Microsoft Identity Platform for authentication (specifically, it's modelled after the "Entra ID app" part of this sample: https://github.com/Azure-Samples/ms-identity-python-webapp). This is going great - users can sign in using their tenant Microsoft account without issue.
This web app has several API endpoints, protected by the same authentication as the rest of the app. I'd like to access these endpoints using a custom Power Automate connector, but I've run into some issues.
I followed these two guides:
- https://learn.microsoft.com/en-us/connectors/custom-connectors/define-blank
- https://learn.microsoft.com/en-us/connectors/custom-connectors/azure-active-directory-authentication
I currently have two App Registrations in Entra:
- one for the webapp sign-in process, with a Redirect URI of "https://myapp.com/auth_response" (an endpoint that I handle in my webapp backend) and a delegated API permission of User.Read; and
- one for the Power Automate connector, with a Redirect URI of "https://global.consent.azure-apim.net/redirect/myapp-<some-guid>" (provided by Power Automate when I created the custom connector) and a delegated API permission of user_impersonation.
(This makes sense, I think, because in another scenario it could be two different people or organisations building the webapp and the Power Automate connector.)
Unfortunately, when I test my freshly created custom connector, I get the following message:
I should mention at this point that I read through this thread but didn't have any luck with anything posted there.
I've had this message for around a day on my first attempt and a few hours on a second attempt (I tried making a new one as suggested in the above thread). Everything has been done according to the two articles I linked earlier.
I noticed that the latter of these articles has some pretty old screenshots and says to use https://management.core.windows.net/ for the Resource URL. I came across a (non-Microsoft) article from 2020 (here) that says to copy the App Registration's client ID into the Resource URL, which I also tried to no avail.
My question, then, is in two parts:
- Is there something more I need to do on the webapp end to make it play nicely with Power Automate's auth?
- Am I missing something that was not mentioned in those articles in my custom connector setup?
Thanks in advance,
Max

Report
All responses (
Answers (