Created
November 26, 2012 22:37
-
-
Save devhawk/4151122 to your computer and use it in GitHub Desktop.
SSO Code for Win8 apps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var authClient = new LiveAuthClient(); | |
| LiveLoginResult authResult = await authClient.LoginAsync( | |
| new List<string>() { "wl.signin", "wl.basic" }); | |
| if (authResult.Status == LiveConnectSessionStatus.Connected) | |
| { | |
| LiveConnectClient client = new LiveConnectClient(authResult.Session); | |
| LiveOperationResult liveOpResult = await client.GetAsync("me"); | |
| string name = (string)liveOpResult.Result["name"]; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment