from onovotny and copied from Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2#241
If you want to use .AddMsal(), there's no way to do so without any user scopes. It might be needed for Application flows.
If you use new string[0] for the scopes parameter, it'll throw in the OnAuthorizationCodeReceived callback since options.Scope will be null:
await tokenAcquisition.AddAccountToCacheFromAuthorizationCodeAsync(context, options.Scope).ConfigureAwait(false);
from onovotny and copied from Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2#241
If you want to use .AddMsal(), there's no way to do so without any user scopes. It might be needed for Application flows.
If you use
new string[0]for the scopes parameter, it'll throw in the OnAuthorizationCodeReceived callback since options.Scope will be null:await tokenAcquisition.AddAccountToCacheFromAuthorizationCodeAsync(context, options.Scope).ConfigureAwait(false);