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

Getting/Parsing "Authorization Code" from the response returned in the query string of the redirect URL

Hi All,


I am a newbie to Flow and APIs with no IT background.


 I am trying to get access token thru a Flow based on the instructions in this link


I want to get bearer access token without going to go via Shared Secret way.


Step 1. Register your app - DONE

Step 2. Authorization request - DONE
            Authorization response - Can't crack how to get the Authorization Code returned in the query string of the redirect URL


Really appreciate your support. Already spent two days with no result.



New Member

I have already granted permission when invoked based on the first step and whenever I post the below in browser I get an authorization code in the address bar URL itself{tenant}/oauth2/v2.0/authorize?


auth code.PNG


Hi @shoaibahmed,


Maybe you can have a reference on this blog to continue your next steps:


Please have a try, I hope it can help you.


Best Regards,

Community Support Team _ Lin Tu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

How to get the authorization code, in a Flow thru GET http call, from a fictitious reply URL/URI which doesn't resolve/exist?

Appreciate if anyone can guide.

Best regards

Helpful resources

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (41,502)