Azure AD Authentication: Generate an Access Token

Maarten Merken
Agilix
Published in
1 min readSep 26, 2018

Every now and then when testing your OAuth provider, you need to generate a user’s token in order to test your authentication configuration.

In the past, I resorted to Fiddling the HTTP traffic, intercepting the Bearer token and copy it over for use in Postman requests.

This quickly becomes tedious , so I’ve created a small Angular application that handles this exact requirement.

This application is specific for Azure AD, you first need to setup an Azure Active Directory and add a App registration, from which you’ll need the Application ID and the name of the tenant (or domain).

For example:

Tenant : merkenmaartengmail.onmicrosoft.com
Application ID : 2ada2151-5673-4482-9347-66affcfda7e0

This post might help you get started with creating an App registration.

After you setup your Azure AD, you can clone the GitHub repo and start up the client.

Happy fiddling!

--

--