Partager via


MicrosoftIdentityApplicationOptions.WithSpaAuthCode Property

Definition

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