web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power Automate Custom ...
Power Automate
Unanswered

Power Automate Custom Connector - Token Invalid Invalid Audience

(0) ShareShare
ReportReport
Posted on by 6

Hi,

 

I have built a few custom connectors before but for some reason am having real issues getting a custom connector to authenticate against an api i have written. 

 

The API is written in .netcore 5, hosted as a WebApp in the same tenant i am trying to connect from. I've checked the authentication setup and the ClientId is pointing to the 37008370 clientid guid in the below image.

 

Security Setup.png

I've connected to this API using a blazor app so I think authentication is setup correctly.

 

When I try and setup the authentication for a custom connector though I get the following response

 

{
 "content-length": "0",
 "date": "Wed, 20 Oct 2021 10:11:51 GMT",
 "request-context": "appId=cid-v1:4e1e4b6a-ace8-48e9-8121-546d6e834953",
 "www-authenticate": "Bearer error=\"invalid_token\", error_description=\"The audience 'api://37008370-*********' is invalid\"",
 "x-ms-apihub-cached-response": "false",
 "x-powered-by": "ASP.NET"
}

 

I think I have setup everything correctly and cant see where I am going wrong.

Any help appreciated.

Thanks

Stuart

Categories:
I have the same question (0)
  • murshed Profile Picture
    Microsoft Employee on at

    Pleas confirm your auth mechanism is set up correctly by invoking the API from PostMan first. If that's working you can retry the custom connector.

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION ☑️. If you find this reply helpful, please consider giving it a LIKE 👍.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 253 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 172 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 134 Super User 2026 Season 2

Last 30 days Overall leaderboard