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 / HTTP call to generate ...
Power Automate
Unanswered

HTTP call to generate Access Token for Azure Devops

(0) ShareShare
ReportReport
Posted on by 1,304

 

F0CF73DE-66FB-499D-9C46-1526254325C0.png

 

hi

 

I am getting an access token in the response on the first HTTP call. But when I pass that access token to the password field in the second HTTP call, I get a 401 response (unauthorised). 

i know I am close with this. Maybe I need to send a scope or resource parameter in the Body of the first HTTP call?

 

I do have an App Registration with a client ID and secret with permissions to Azure DevOps. 

 

Please help. 

thank you !

Categories:
I have the same question (0)
  • tom_riha Profile Picture
    10,185 Most Valuable Professional on at

    Hello @Jondoesflow ,

    I'd try to send the token in the request header with Authentication set to "None". That's the approach when calling Graph API - sending the token in the header to handle authentication.

    {
     "Content-Type": "application/json",
     "Authorization": "Bearer @{body('HTTP_-_Authenticate')?['access_token']}"
    }

    image.png

  • JonDoesFlow Profile Picture
    1,304 on at
  • tom_riha Profile Picture
    10,185 Most Valuable Professional on at

    Now it seems that the request was authenticated, but the url is trying to redirect the request somewhere else. Here I'm unfortunately out of ideas as I never worked with DevOps and I have no idea what's going in there.

  • JonDoesFlow Profile Picture
    1,304 on at

    Thanks Tom, yeah, I will get there, tricky one, thanks for your assistance !

  • ShivamDhyani Profile Picture
    2 on at

    Hello @Jondoesflow Your post helped me out to create the access token and now I am stuck on the same thing that the object is moved to a new location. Any solutions for that?? 

  • JonDoesFlow Profile Picture
    1,304 on at

    Sorry. Never managed to fix that one ;(

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