microsoft-authentication-library-for-dotnet icon indicating copy to clipboard operation
microsoft-authentication-library-for-dotnet copied to clipboard

[Bug] WAM and B2C scenarios when scopes = new[] { "" } proceed and lead to errors

Open gladjohn opened this issue 3 years ago • 0 comments

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

gladjohn avatar Sep 15 '22 18:09 gladjohn