windows runtime - Uniquely identify a user on WinRT and WP8 using (f.ex.) LiveID? -
i looking way uniquely identify user in winrt , preferably in wp8 well. in wp7 applications, hash of live id this, not sure of how approach in winrt environment. 1 of goals here identify user in windows 8 environment whole. using liveid in 1 form or ok in case. found sources mentioned might require enterprise security permissions (or such) not welcome in windows marketplace.
say want identify user based on live id, want automatically , across multiple devices (pc, tablet, maybe wp8). resources should looking for?
you can obtain id of each live user if using live sdk. here's code you.
private async task<string> getliveuserid() { string id = ""; var auth = new liveauthclient(); var loginresult = await auth.loginasync(new string[] { "wl.signin", "wl.basic" }); if (loginresult.status == liveconnectsessionstatus.connected) { var liveclient = new liveconnectclient(loginresult.session); var mydata = await liveclient.getasync("me"); id = mydata.result["id"].tostring(); } return id; }
Comments
Post a Comment