Tuesday 15 April 2014

c# - Login with Microsoft account using Live SDK -



c# - Login with Microsoft account using Live SDK -

i creating windows 8.1 application, , want utilize multiple accounts. when first started application, used wl.signin scope test app faster, want test other account(s). deleted scope, uninstalled app computer, , live business relationship removed apps permissions.

still, if want log in first time, app wants permission automatic login(== wl.signin, deleted scopes mentioned before).

basically, want accomplish write user credentials every time want utilize app login other accounts.

here code login:

liveloginresult result = await app.auth.initializeasync(new string[] { "wl.basic" }); if (result.status != liveconnectsessionstatus.connected) result = await app.auth.loginasync(new string[] { "wl.basic" }); if (result.status == liveconnectsessionstatus.connected) { await app.mobileservice.loginwithmicrosoftaccountasync( result.session.authenticationtoken); app.lcs = result.session; } else { await dialogservice.showmessage("not logged in.", "error!"); }

and if seek log out, canlogout returns false value.

if (app.auth.canlogout) { app.auth.logout(); navigationservice.navigateto("mainpage"); }

what missing here? maybe scopes cached somewhere else? problem if utilize operating scheme microsoft account? or if associated app store app visual studio?

it's not possible livesdk. because livesdk uses business relationship info system. way utilize few accounts @ once, develop own sdk via live rest api (as in livesdk internally).

c# windows-store-apps single-sign-on azure-mobile-services live-sdk

No comments:

Post a Comment