Quickstart: Call the Microsoft Graph API from a Universal Windows Platform (UWP) application

Keith Nicholson 21 Reputation points
2020-04-21T16:22:37.297+00:00

Good day!

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.4.8.1.0.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://learn.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.

Peace,
Keith

Universal Windows Platform (UWP)
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,707 questions
{count} votes