microsoft-authentication-library-for-dotnet
microsoft-authentication-library-for-dotnet copied to clipboard
[Bug] WAM and B2C scenarios when scopes = new[] { "" } proceed and lead to errors
Logs and network traces none
Which version of MSAL.NET are you using? latest
Platform any
Repro
var authResult = await pca.AcquireTokenInteractive(new[] { "" })
.ExecuteAsync();
Expected behavior Friendly exception
Actual behavior Flow proceeds and results in unfriednly exceptions
Fix: authenticationRequestParameters.HasScopes returns true if empty string is passed as scopes