Skip to content

Acquiring tokens with authorization codes on web apps

Jean-Marc Prieur edited this page Mar 7, 2018 · 26 revisions

Getting tokens by authorization code (Web Sites)

When users login to Web applications (web sites) using Open Id connect, the web application receives an authorization code which it can redeem to acquire a token for Web APIs.

Getting tokens by authorization code in MSAL.NET

image

The principle is exactly the same for MSAL.NET, and is illustrated in active-directory-dotnet-webapp-openidconnect-v2, in Startup.Auth.cs, Lines 70 to 87

Getting started with MSAL.NET

Acquiring tokens

Desktop/Mobile apps

Web Apps / Web APIs / daemon apps

Advanced topics

News

FAQ

Other resources

Clone this wiki locally