Showing results for 
Search instead for 
Did you mean: 
New Member

Not able to subscribe to WebHook using OAUTH2 Authentication

Hello Team,

We are facing below issues in Power Automate for WebHook subscription. Could you please help us the resolve those.

1) We used OAUTH2 authentication mechanism to Subscribed WebHook, but we getting 401 error.
Upon analysis it was found out that, there is difference in AUD claim in access token generated by Power Automate and what WebHook application expects.
WebHook app expects AUD claim as api://client-id and in Power Automate generated access token, AUD claim is
We also passing scope as api://client-id/.default but still AUD claim is generate as
Please let us know here what we can do to generate proper AUD claim.

2) The flow used in OAUTH2 type is accessCode in Power Automate. We also wanted to try flow as application in OUATH2 type.
So, we added flow as application in Swagger and updated the connector. But, as soon as we update the connector the flow gets defaulted back to accessCode.
Please let us know how we can use flow as application in Power Automate.




Helper II
Helper II

Hi @avgode did you ever find a solution to this? I'm having the same problem with my Azure API Management service API. The JWT validation fails because of an audience mismatch, exactly as you described.



Helpful resources

MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,147)