Skip to main content
Community site session details

Community site session details

Session Id : eiQkICoMbEWxKrhNWNAxlV
Power Automate - Using Connectors
Unanswered

Not able to subscribe to WebHook using OAUTH2 Authentication

Like (2) ShareShare
ReportReport
Posted on 26 May 2021 10:21:35 by 4

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 https://apihub.azure.com.
We also passing scope as api://client-id/.default but still AUD claim is generate as https://apihub.azure.com.
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.

 

Thanks,

Amey

  • gmmsgt Profile Picture
    4 on 08 May 2023 at 11:16:37
    Re: Not able to subscribe to WebHook using OAUTH2 Authentication

    Is there a solution for this yet?

  • packnology Profile Picture
    138 on 16 Jul 2021 at 04:34:23
    Re: Not able to subscribe to WebHook using OAUTH2 Authentication

    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.

    Thanks,

    Greg

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Featured topics

Loading started
Loading complete