Hi everyone,
I have my own custom API which I want to expose to the Power Platform using a custom connector but am getting a 401 unauthorized.
I've created 2 app registrations in Azure Active Directory; one for the API and one for the connector, following the same steps provided in this post/article.
Power Users Post
Microsoft Docs
I've created the custom connector using a Postman definition. It contains two endpoints which accept GET requests; an anonymous one and one requiring authentication. When I try "Test operation", the anonymous works and returns some data, but the other returns a 401.
I'm pretty happy the API authentication is setup correctly because I can manually obtain an access token using the implicit grant flow (selecting the "Access tokens" checkbox in the app registration) and then call the API successfully using Postman.
Below is a couple of screen shots of the security setup. The first using "Azure Active Directory" as the identity provider. The second is using "Generic Oauth 2".


Client id and secret used here is from the connector app registration.
Any ideas what I'm doing wrong?
Thanks
Adam