Closed assassin316 closed 8 years ago
UPDATE:
I've made some changes since this post. I've now correctly associated my app with the Store, and updated the code:
const string OneDriveBaseUrl = "https://api.onedrive.com/v1.0";
const string OneDriveAppId = "000000004*******";
var msaAuthProvider = new MsaAuthenticationProvider
(
OneDriveAppId,
OneDriveBaseUrl,
new string[] { "onedrive.readonly", "wl.signin" }
);
await msaAuthProvider.AuthenticateUserAsync();
var oneDriveClient = new OneDriveClient(OneDriveBaseUrl, msaAuthProvider);
When this code executes, the authetication then fails and shows a web page that states:
"We're unable to complete your request" "Microsoft account is experiencing technical problems. Please try again later."
Sorry for the delay. A new version of the Auth library has been released which uses single sign-on for UWP apps. Please give that a try and post here if that solves your issue.
The new OnlineIdAuthenticationProvider for UWP authenticates successfully! thank you :)
I am very glad to hear that :)
When excuting AuthenticateUserAsync() I received Access is Denied. Am I doing something wrong ?? My app is a UWP app running on my laptop. Here is the code: