Super easy way to get an access token

Sahil Malik
Winsmarts.com
Published in
2 min readApr 25, 2019

--

My friends and buddies taught me these, and I know I’ll forget them, so writing them up here.

Azure is full of amazing REST APIs, but sometimes getting an access token requires you to jump through hoops. Here is a way to make it all hella easy!

First, for Microsoft Graph, you just go to graph explorer, open dev tools, and write tokenPlease() and it writes out the token for you.

For more generic, i.e., tokens for any resource protected by Azure AD, do this,

az login
az account…

--

--