This topic shows you how to register your app with the Windows Store to be able to use Live Connect for single sign-on as the identity provider for Azure Mobile Services. This step is also required to use push notifications.
You do not need to register your app with the Windows Store to be able to use Microsoft Account for authentication before you publish your app. When your Windows Store app does not require single sign-on or push notifications, you can just register your app with Live Connect to use a Microsoft Account login. For more information, see Register your Windows Store apps to use a Microsoft Account login.
If you have not already registered your app, navigate to the Submit an app page at the Dev Center for Windows Store apps, log on with your Microsoft Account, and then click App name.
Type a name for your app in App name, click Reserve app name, and then click Save.
This creates a new Windows Store registration for your app.
In Visual Studio 2012 Express for Windows 8, open the project that you created when you completed the tutorial Get started with Mobile Services.
In solution explorer, right-click the project, click Store, and then click Associate App with the Store....
This displays the Associate Your App with the Windows Store Wizard.
In the wizard, click Sign in and then login with your Microsoft account.
Select the app that you registered in step 2, click Next, and then click Associate.
This adds the required Windows Store registration information to the application manifest.
Navigate to the My Applications page in the Live Connect Developer Center and click on your app in the My applications list.
Click Edit settings, then API Settings and make a note of the value of Client secret.
In Redirect domain, enter the URL of your mobile service from Step 8, and then click Save.
You are now ready to integrate authentication by using Live Connect into your app. Mobile Services provides the following two methods for authenticating users by using Live Connect:
Single sign-on for Windows Store apps. In this method, users only need to authorize authentication in your application one time by using Live Connect, and then credentials are managed by Windows, based on user preferences. For more information see, Single sign-on for Windows Store apps by using Live Connect.
Basic authentication. This method, which supports a variety of authentication providers, requires users to log-in every time your app starts. For more information, see Get started with authentication.