I tried to connect to microsoft in my Windows 10 UWP application.
var authenticator = new Windows.Security.Authentication.OnlineId.OnlineIdAuthenticator();
var serviceTicketRequest = new Windows.Security.Authentication.OnlineId.OnlineIdServiceTicketRequest("wl.basic", "DELEGATION");
System.Diagnostics.Debug.WriteLine("Signing in...");
var authResult = await authenticator.AuthenticateUserAsync(serviceTicketRequest);
This was the code I tried. I got an exception in the authenticator.AuthenticateUserAsyncexception was
An exception was thrown: "System.Exception" in the mscorlib.ni.dll file
Additional information: an application requesting authentication tokens is either disabled or improperly configured. (Exception from HRESULT: 0x80860003) Does anyone have an idea why this is happening?
source
share