Reputation: 4015
I am building Windows8 metro app and need to implement single sign on and connecto to skydrive.
Code from various sources that I referred (mentioned at the end)...
WL.init({ scope: "wl.signin" });
WL.login().then(
function onSuccess(session) {
var session = WL.getSession();
if (session.error) {
document.getElementById("infoLabel").innerText =
"Error signing in: " + session.error;
}
else {
document.getElementById("infoLabel").innerText =
"Signed in.";
}
},
function onError(error) {
document.getElementById("infoLabel").innerText =
"Error signing in";
}
);
I am getting following error (onError
function) - "The application requesting authentication tokens is either disabled or incorrectly configured"
I referred following links and libraries. One of the links is suggesting app registration. I am having developer registration completed, do I have to register the app inorder to achieve single sign on metro app?
Thank you.
Upvotes: 1
Views: 1108
Reputation: 450
Yes, you have to register your Windows 8 App here if you want to work with Live Connect: https://manage.dev.live.com/build?wa=wsignin1.0
Good luck!
Upvotes: 1