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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard