Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Connector Development
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:
  • murshed Profile Picture
    Microsoft Employee on at
    Re: Power Automate Custom Connector - Token Invalid Invalid Audience

    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

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