SALES: 1-800-867-1380

MobileServiceClientExtensions.LoginWithMicrosoftAccountAsync Method

Updated: July 14, 2013

Initiates authentication using a cached single sign-on token provided by a previous Microsoft Account login.

Namespace:  Microsoft.WindowsAzure.MobileServices
Assembly:  Microsoft.WindowsAzure.Mobile (in Microsoft.WindowsAzure.Mobile.dll)

public static Task<MobileServiceUser> LoginWithMicrosoftAccountAsync(
	this MobileServiceClient thisClient,
	string authenticationToken


Type: Microsoft.WindowsAzure.MobileServices.MobileServiceClient
The client with which to login.
Type: System.String
Live SDK session authentication token.

Return Value

Type: System.Threading.Tasks.Task<MobileServiceUser>
Task that completes when authentication is complete. The result of this task is the MobileServiceUser object for the logged-in user.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type MobileServiceClient. When you use instance method syntax to call this method, omit the first parameter. For more information, see or

This authentication method is only supported for Windows Store apps.

Use this method when you already have a cached single sign-on session token obtained by using the Live SDK. For more information, see Authenticate your Windows Store app with Live Connect single sign-onWindows Store C# / Windows Phone.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft