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
Property Value
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for