简体   繁体   English

通过Windows Live ID登录桌面应用程序

[英]Log in to desktop application by Windows Live ID

I want to create a login form for my desktop application that user can use Windows Live ID for that. 我想为我的桌面应用程序创建一个登录表单,用户可以使用Windows Live ID。 I create an application in manage.dev.live.com and use Desktop Implementation section. 我在manage.dev.live.com中创建了一个应用程序并使用了Desktop Implementation部分。

I use a WebBrowser control and navigate to a given address. 我使用WebBrowser控件并导航到给定的地址。 but I don't know how to receive the token for user. 但我不知道如何收到用户的令牌。 If I have made a mistake please tell me how to fix that. 如果我犯了错误,请告诉我如何解决这个问题。

As of June 2011, Windows Live ID supports OAUTH 2.0 and should enable you to do that ( read more about it ). 截至2011年6月,Windows Live ID支持OAUTH 2.0,并且应该允许您这样做( 阅读更多相关信息 )。 WPF code example can be found at https://github.com/liveservices/LiveSDK/tree/master/Samples/CSharpDesktop . 可以在https://github.com/liveservices/LiveSDK/tree/master/Samples/CSharpDesktop找到WPF代码示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM