cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
shoaibahmed
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 https://docs.microsoft.com/en-us/graph/auth-v2-user

 

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.

Thanks

SA

3 REPLIES 3
Highlighted
shoaibahmed
New Member

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

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

 

https://login.microsoftonline.com/{tenant}/oauth2/v2.0/authorize?
client_id=6731de76-14a6-49ae-97bc-6eba6914391e
&response_type=code
&redirect_uri=http%3A%2F%2Flocalhost%2Fmyapp%2F
&response_mode=query
&scope=offline_access%20user.read%20mail.read
&state=12345

 

auth code.PNG

 

Community Support
Community Support

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

Hi @shoaibahmed,

 

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

https://flow.microsoft.com/en-us/blog/automate-flow-governance/

 

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.

shoaibahmed
New Member

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

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.

Thanks
Best regards
SA

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Users online (7,072)