??? Windows Phone ????? Windows Live ??????????????????
?WP for ITPro?Windows Phone ????? Windows Live ?????????
??????????? Live SDK????????? SignInButton Control ???????????????????????????????????????????? SignInButton Control ?????????????????
Signin Control ?? OAuth 2.0 ?????????????????????????? ????????????????????????????????????????????????????????????????????????????
????????? IT Pro ???????????????????????????????????????????
1. SDK ???????
Microsoft Connect ??????Live SDK ??????????????????
http://connect.microsoft.com/site1226
?????????????? LiveSDK.msi ????????????????????????
2. Windows Live ??????????????????
?????????????????????????Client ID ???????
https://manage.dev.live.com/Applications/Index?wa=wsignin1.0
?????????????????
My Apps ?????????????Create Application?????????????
?????????????????????????Japanese?????????????????????????????????????????????????????????????????I accept??????????
??????????????? Client ID ??????????????????????????????????????????????Client ID ???????Appication Setting Page?????????
Settings ?????????????API Settings???????????Mobile client app?? ?yes? ?????????????Save????????????????
???????????
3???????????????
?????????????????????????????????????????????????
Signin Control ?????????
??????????????LiveConAuthWithSignInControl.sln ? Visual Studio 2010 ?????????Visual Studio ??????? ITPRO ????????? Visual Studio 2010 Express for Windows Phone ????????????????
?????????
?????????????????????????????????????????
?????????? Live SDK ??????? Signin Contorl????????2???????????????????????
???????????????????????????????????????????????
.NET ????Microsoft.Live.Controls???Microsoft.Live????2????????????????????????OK??????????
????Live SDK ????????????????????
???Signin Control ???????????
??????????????????????????????????????????????????
?????????????????????????????Windows Phone ??????????????SigninButton????????????????OAuth 2.0 ??????????????????????????????
??????????????????Mainpage.xaml??????????????????????????????????????????????????????SignInButton??????????????????
5. ???? Client ID ?????
Client ID ? RedirectUri?Scopes ???SignInButton ???????????????
???????????????? Mainpage.xaml ??????????????????
???????????????????
??????????????????????????????SignInButton ??????????????????????????????? ClientID ? Scope ?????????????????2. Windows Live ?????????????????? ????? Client ID ? ClientID ???????????????
????????? Scopes ?????????????????? MainPage() ????????????
???????????
6. ??
F5 ??????????????????????
??????????????????Sign in ??????????????
?????Windows Live ??????????????????????????????????????????????????
???????????????????????????????????????????????????????????????????????????????????????
?????????????????????SingInButton ??????? Scopes ???????????????????MainPage.xaml.cs ????? MainPage() ????????????????Scopes ???wl.skydrive_update???????????????????? SkyDrive ??????????????????????????????????????????
public MainPage()
{
? InitializeComponent();
? signInButton1.Scopes = "wl.skydrive_update,wl.signin,wl.basic,wl.emails,wl.contacts_birthday,wl.work_profile"; //,wl.offline_access";
}???????????????????????????????????????????????????????????????SignInButton ???????????????????????????????????
?????? Windows Live ??????????????????????????????
????????????????????????????2?????????????????????????????SignInButton???????????&??????????1????????
Source: http://blogs.technet.com/b/junichia/archive/2011/11/09/3464073.aspx
between two ferns howard stern howard stern my alexa blog&errors=0&age=&maxfiles=50&maxlines=30&maxchars=10000&cache=yes">joe the plumber weather colorado springs weather colorado springs surrogates
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.