Wednesday, November 9, 2011

Blog Post: ?WP for ITPro?SignInButton Control ????? Windows Phone ????? Windows Live ?????????

image

??? 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?????????????

image

?????????????????????????Japanese?????????????????????????????????????????????????????????????????I accept??????????

image

??????????????? Client ID ??????????????????????????????????????????????Client ID ???????Appication Setting Page?????????

image

Settings ?????????????API Settings???????????Mobile client app?? ?yes? ?????????????Save????????????????

image

???????????

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??????????

image

????Live SDK ????????????????????

???Signin Control ???????????

??????????????????????????????????????????????????

image

?????????????????????????????Windows Phone ??????????????SigninButton????????????????OAuth 2.0 ??????????????????????????????

image

??????????????????Mainpage.xaml??????????????????????????????????????????????????????SignInButton??????????????????

image

5. ???? Client ID ?????

Client ID ? RedirectUri?Scopes ???SignInButton ???????????????

???????????????? Mainpage.xaml ??????????????????

???????????????????

image

??????????????????????????????SignInButton ??????????????????????????????? ClientID ? Scope ?????????????????2. Windows Live ?????????????????? ????? Client ID ? ClientID ???????????????

image

????????? Scopes ?????????????????? MainPage() ????????????

???????????

6. ??

F5 ??????????????????????

??????????????????Sign in ??????????????

image

?????Windows Live ??????????????????????????????????????????????????

image

???????????????????????????????????????????????????????????????????????????????????????

image

?????????????????????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 ??????????????????????????????

image

????????????????????????????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.