Is LiveAuthClient CanLogout always false?

I ran into this problem quite recently when I wanted to test my application with several live identifiers. I have an Azure Mobile Service with which I use a live identifier. Basically, I remember that I was asked if the application can use my credentials or not at least once. Now the CanLogout LiveAuthClient variable is always incorrect, so I cannot register my account to log in to another account.

I found several links that said that I would need to remove one single character on things manually, but I could only find one of them in Credential Manager, similar to the similar, and its removal (MicrosoftAccount: sth) did not affect. Here is the relevant snippet of my code:

LiveAuthClient liveIdClient = new LiveAuthClient("myserviceredirecturi"); LiveLoginResult liveAuthResult = await liveIdClient.InitializeAsync(new[] { "wl.basic" }); if (liveIdClient.CanLogout) liveIdClient.Logout(); // Code never goes here, ever. LiveLoginResult liveLoginResult = await liveIdClient.LoginAsync(new[] { "wl.basic" }); 

The last line registers me with the current Windows 8 identifier. How can I test multiple live identifiers?

+6
source share

Source: https://habr.com/ru/post/947472/


All Articles