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!