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 / Microsoft Teams - HTTP...
Power Automate
Unanswered

Microsoft Teams - HTTP Step (OAuth)

(1) ShareShare
ReportReport
Posted on by
Hello,
 
I am building a Workflow that has a HTTP Step, I am trying to use the Active Directory OAuth using Azure.
My goal is to call an API Endpoint that has OAuth 2 Enabled.
 
I set up everything on Teams and Azure, the HTTP Request is going out and being received by the end point but I am getting an Unauthorized Result (Invalid Token)
 
The OAuth flow that I am trying to accomplish is the OAuth Authorization Code that involves user credentials.
 
The HTTP is triggered by an user action through an Adaptive Card, I thought that since an user initiated the request then the API Request would actually contain a Bearer Token that would be tied to the user who triggered the request.
 
However, when I decode the token using JWT.IO, I see the sub (subject) variable is always the same, no matter which user triggers the request, which makes me think the Token coming from Azure is actually an APP ID, so I am guessing it is trying to do the Client Credential OAuth (APP->APP) flow that does not involve User Credentials, and this will not work for me, since the user is the one who needs to get authenticated on the third party application.
 
I guess my question, is it possible to accomplish what I am trying to do? Or OAuth Authorization code is not possible using this Step?
 
Thanks in advance!
Categories:
I have the same question (0)

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