I attempted to the Quickstart: Call the Microsoft Graph API from a Universal Windows Platform (UWP) application. I took several approaches and came up with the same issue.
Error Acquiring Token: MSAL.UAP.184.108.40.206.MsalClientException: ErrorCode: authentication_ui_failed Microsoft.Identity.Client.MsalClientException: Web Authentication Broker (WAB) authentication failed. To collect WAB logs, please follow https://aka.ms/msal-net-wab-logs ---> System.Exception: The process terminated unexpectedly. (Exception from HRESULT: 0x8007042B)
I started here: https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-v2-uwp.
Created and registered a new app as stated in Step 1. Downloaded the code in Step 2. Made the ClientID change in Step 3. Executed in Step 4 and pressed the button to MS Graph. I received the error.
Then I went back to Azure Portal/AD and created a new Registration, I used the Quickstart navigation link and chose a UWP solution. Accepted the Redirect URI suggestion and downloaded the app with my new clientId embedded already in the code.
I have to admit, that is pretty cool!!!!
I also made sure User.Read was available.
Yet, I still got the error.
It has to be something simple. But what? I also made sure User.Read was available.