MicrosoftIdentityApplicationOptions.WithSpaAuthCode Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
If set to true
, when the user signs-in in a web app, the application requests an auth code
for the frontend (single page application using MSAL.js for instance). This will allow the front end
JavaScript code to bypass going to the authoriize endpoint (which requires reloading the page), by
directly redeeming the auth code to get access tokens to call APIs.
See https://aka.ms/msal-net/hybrid-spa-sample for details. Only works for AAD, not B2C.
public bool WithSpaAuthCode { get; set; }
member this.WithSpaAuthCode : bool with get, set
Public Property WithSpaAuthCode As Boolean