Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #426 from ggailey777/zumo_weekly

#415: Zumo weekly switcher fixes in all topics
  • Loading branch information...
commit baeca359be525cedb8602e3bd971e525a23fe6c3 2 parents be451c7 + bdddac0
@mollybostic authored
Showing with 187 additions and 406 deletions.
  1. +0 −49 DevCenter/Mobile/Chunks/mobile-facebook-auth-steps.md
  2. +0 −45 DevCenter/Mobile/Chunks/mobile-google-auth-steps.md
  3. +0 −37 DevCenter/Mobile/Chunks/mobile-microsoft-account-auth-steps.md
  4. +0 −65 DevCenter/Mobile/Chunks/mobile-microsoft-account-full-integration-steps.md
  5. +0 −42 DevCenter/Mobile/Chunks/mobile-twitter-auth-steps.md
  6. +1 −1  DevCenter/Mobile/HowTo/mobile-services-register-facebook-auth.md
  7. +2 −2 DevCenter/Mobile/HowTo/mobile-services-register-google-auth.md
  8. +5 −4 DevCenter/Mobile/HowTo/mobile-services-register-ms-account-auth.md
  9. +4 −4 DevCenter/Mobile/HowTo/mobile-services-register-twitter-auth.md
  10. BIN  DevCenter/Mobile/Media/mobile-live-connect-app-api-settings.png
  11. BIN  DevCenter/Mobile/Media/mobile-services-google-create-client3.png
  12. +3 −4 DevCenter/Mobile/Tutorials/mobile-services-authorize-users-dotnet.md
  13. +3 −3 DevCenter/Mobile/Tutorials/mobile-services-authorize-users-ios.md
  14. +3 −2 DevCenter/Mobile/Tutorials/mobile-services-authorize-users-js.md
  15. +3 −2 DevCenter/Mobile/Tutorials/mobile-services-get-started-ios.md
  16. +5 −10 DevCenter/Mobile/Tutorials/mobile-services-get-started-with-data-dotnet.md
  17. +35 −25 DevCenter/Mobile/Tutorials/mobile-services-get-started-with-data-ios.md
  18. +5 −10 DevCenter/Mobile/Tutorials/mobile-services-get-started-with-data-js.md
  19. +4 −3 DevCenter/Mobile/Tutorials/mobile-services-get-started-with-push-dotnet.md
  20. +4 −3 DevCenter/Mobile/Tutorials/mobile-services-get-started-with-push-js.md
  21. +10 −10 DevCenter/Mobile/Tutorials/mobile-services-get-started-with-users-dotnet.md
  22. +54 −45 DevCenter/Mobile/Tutorials/mobile-services-get-started-with-users-ios.md
  23. +10 −10 DevCenter/Mobile/Tutorials/mobile-services-get-started-with-users-js.md
  24. +5 −5 DevCenter/Mobile/Tutorials/mobile-services-get-started.md
  25. +4 −3 DevCenter/Mobile/Tutorials/mobile-services-paging-data-dotnet.md
  26. +4 −3 DevCenter/Mobile/Tutorials/mobile-services-paging-data-js.md
  27. +2 −3 DevCenter/Mobile/Tutorials/mobile-services-push-notifications-to-app-users-dotnet.md
  28. +4 −3 DevCenter/Mobile/Tutorials/mobile-services-push-notifications-to-app-users-js.md
  29. +3 −2 DevCenter/Mobile/Tutorials/mobile-services-single-sign-on-win8-dotnet.md
  30. +6 −5 DevCenter/Mobile/Tutorials/mobile-services-single-sign-on-win8-js.md
  31. +4 −3 DevCenter/Mobile/Tutorials/mobile-services-validate-and-modify-data-dotnet.md
  32. +4 −3 DevCenter/Mobile/Tutorials/mobile-services-validate-and-modify-data-js.md
View
49 DevCenter/Mobile/Chunks/mobile-facebook-auth-steps.md
@@ -1,49 +0,0 @@
-<div class="dev-callout"><b>Note</b>
-<p>To complete the procedure in this topic, you must have a Facebook account that has a verified email address and a mobile phone number. To create a new Facebook account, go to <a href="http://go.microsoft.com/fwlink/p/?LinkId=268285" target="_blank">facebook.com</a>.</p>
-</div>
-
-1. Navigate to the [Facebook Developers] web site and sign-in with your Facebook account credentials.
-
-2. (Optional) If you have not already registered, click **Register Now** button, accept the policy, provide any and then click **Done**.
-
- ![][0]
-
-3. Click **Apps**, then click **Create New App**.
-
- ![][1]
-
-4. Choose a unique name for your app, select **OK**.
-
- ![][2]
-
- This registers the app with Facebook
-
-5. Under **Select how your app integrates with Facebook**, expand **Website with Facebook Login**, type the URL of your mobile service in **Site URL**, and then click **Save Changes**.
-
- ![][3]
-
-6. Make a note of the values of **App ID** and **App Secret**.
-
- ![][4]
-
- <div class="dev-callout"><b>Security Note</b>
- <p>The app secret is an important security credential. Do not share this secret with anyone or distribute it with your app.</p>
- </div>
-
-You are now ready to integrate authentication by using Facebook into your app by providing the App ID and App Secret values to Mobile Services.
-
-<!-- Anchors. -->
-
-<!-- Images. -->
-[0]: ../Media/mobile-services-facebook-developer-register.png
-[1]: ../Media/mobile-services-facebook-add-app.png
-[2]: ../Media/mobile-services-facebook-new-app-dialog.png
-[3]: ../Media/mobile-services-facebook-configure-app.png
-[4]: ../Media/mobile-services-facebook-completed.png
-
-<!-- URLs. -->
-[facebook.com]: http://go.microsoft.com/fwlink/p/?LinkId=268285
-[Facebook Developers]: http://go.microsoft.com/fwlink/p/?LinkId=268286
-[Get started with authentication]: ./mobile-services-get-started-with-users-dotnet.md
-[WindowsAzure.com]: http://www.windowsazure.com/
-[Windows Azure Management Portal]: https://manage.windowsazure.com/
View
45 DevCenter/Mobile/Chunks/mobile-google-auth-steps.md
@@ -1,45 +0,0 @@
-<div class="dev-callout"><b>Note</b>
-<p>To complete the procedure in this topic, you must have a Google account that has a verified email address. To create a new Google account, go to <a href="http://go.microsoft.com/fwlink/p/?LinkId=268302" target="_blank">accounts.google.com</a>.</p>
-</div>
-
-1. Navigate to the [Google apis] web site, sign-in with your Google account credentials, and then click **Create project...**.
-
- ![][1]
-
-2. Click **API Access** and then click **Create an OAuth 2.0 client ID...**.
-
- ![][2]
-
-3. Under **Branding Information**, type your **Product name**, then click **Next**.
-
- ![][3]
-
-4. Under **Client ID Settings**, select **Web application**, type your mobile service URL in **Your site or hostname**, click **more options**, add your mobile service URL to the list of **Authorized Redirect URIs**, and then click **Create client ID**.
-
- ![][4]
-
-6. Under **Client ID for web applications**, make a note of the values of **Client ID** and **Client secret**.
-
- ![][5]
-
- <div class="dev-callout"><b>Security Note</b>
- <p>The client secret is an important security credential. Do not share this secret with anyone or distribute it with your app.</p>
- </div>
-
-You are now ready to integrate authentication by using Twitter into your app by providing the consumer key and consumer secret values to Mobile Services.
-
-<!-- Anchors. -->
-
-<!-- Images. -->
-[1]: ../Media/mobile-services-google-developers.png
-[2]: ../Media/mobile-services-google-create-client.png
-[3]: ../Media/mobile-services-google-create-client2.png
-[4]: ../Media/mobile-services-google-create-client3.png
-[5]: ../Media/mobile-services-google-app-details.png
-
-<!-- URLs. -->
-[accounts.google.com]: http://go.microsoft.com/fwlink/p/?LinkId=268302
-[Google apis]: http://go.microsoft.com/fwlink/p/?LinkId=268303
-[Get started with authentication]: ./mobile-services-get-started-with-users-dotnet.md
-[WindowsAzure.com]: http://www.windowsazure.com/
-[Windows Azure Management Portal]: https://manage.windowsazure.com/
View
37 DevCenter/Mobile/Chunks/mobile-microsoft-account-auth-steps.md
@@ -1,37 +0,0 @@
-<div class="dev-callout"><b>Note</b>
-<p>When you intend to also provide single sign-on or push notifications from a Windows Store app, consider also registering your app with the Windows Store. For more information, see <a href="/en-us/develop/mobile/howto/register-for-live-connect-auth">Register your Windows Store apps for Windows Live Connect authentication</a>.</p>
-</div>
-
-1. Navigate to the [My Applications] page in the Live Connect Developer Center, and log on with your Microsoft account, if required.
-
-2. Click **Create application**, then type an **Application name** and click **I accept**.
-
- ![][1]
-
- This registers the application with Live Connect.
-
-10. Make a note of the value of **Client ID** and **Client secret**.
-
- ![][2]
-
- <div class="dev-callout"><b>Security Note</b>
- <p>The client secret is an important security credential. Do not share the client secret with anyone or distribute it with your app.</p>
- </div>
-
-<!-- Anchors. -->
-
-<!-- Images. -->
-[1]: ../Media/mobile-services-live-connect-add-app.png
-[2]: ../Media/mobile-services-live-connect-app-details.png
-
-<!-- URLs. -->
-[Single sign-on for Windows Store apps by using Live Connect]: ./mobile-services-single-sign-on-win8-dotnet.md
-[Submit an app page]: http://go.microsoft.com/fwlink/p/?LinkID=266582
-[My Applications]: http://go.microsoft.com/fwlink/p/?LinkId=262039
-[Get started with Mobile Services]: ./mobile-services-get-started.md
-[Get started with authentication]: ./mobile-services-get-started-with-users-dotnet.md
-[Get started with push notifications]: ./mobile-services-get-started-with-push-dotnet.md
-[Authorize users with scripts]: ./mobile-services-authorize-users-dotnet.md
-[JavaScript and HTML]: ./mobile-services-get-started-with-users-js.md
-[WindowsAzure.com]: http://www.windowsazure.com/
-[Windows Azure Management Portal]: https://manage.windowsazure.com/
View
65 DevCenter/Mobile/Chunks/mobile-microsoft-account-full-integration-steps.md
@@ -1,65 +0,0 @@
-1. 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**.
-
- ![][0]
-
-2. Type a name for your app in **App name**, click **Reserve app name**, and then click **Save**.
-
- ![][1]
-
- This creates a new Windows Store registration for your app.
-
-3. In Visual Studio 2012 Express for Windows 8, open the project that you created when you completed the tutorial [Get started with Mobile Services].
-
-4. In solution explorer, right-click the project, click **Store**, and then click **Associate App with the Store...**.
-
- ![][2]
-
- This displays the **Associate Your App with the Windows Store** Wizard.
-
-5. In the wizard, click **Sign in** and then login with your Microsoft account.
-
-6. Select the app that you registered in step 2, click **Next**, and then click **Associate**.
-
- ![][3]
-
- This adds the required Windows Store registration information to the application manifest.
-
-9. Navigate to the [My Applications] page in the Live Connect Developer Center and click on your app in the **My applications** list.
-
- ![][6]
-
-10. Click **Edit settings**, then **API Settings** and make a note of the value of **Client secret**.
-
- ![][7]
-
- <div class="dev-callout"><b>Security Note</b>
- <p>The client secret is an important security credential. Do not share the client secret with anyone or distribute it with your app.</p>
- </div>
-
-11. In **Redirect domain**, enter the URL of your mobile service from Step 8, and then click **Save**.
-
-<!-- Anchors. -->
-
-<!-- Images. -->
-[0]: ../Media/mobile-services-submit-win8-app.png
-[1]: ../Media/mobile-services-win8-app-name.png
-[2]: ../Media/mobile-services-store-association.png
-[3]: ../Media/mobile-services-select-app-name.png
-[4]: ../Media/mobile-services-selection.png
-[5]: ../Media/mobile-service-uri.png
-[6]: ../Media/mobile-live-connect-apps-list.png
-[7]: ../Media/mobile-live-connect-app-api-settings.png
-[8]: ../Media/mobile-services-win8-app-advanced.png
-[9]: ../Media/mobile-services-win8-app-connect-redirect.png
-
-<!-- URLs. -->
-[Single sign-on for Windows Store apps by using Live Connect]: ./mobile-services-single-sign-on-win8-dotnet.md
-[Submit an app page]: http://go.microsoft.com/fwlink/p/?LinkID=266582
-[My Applications]: http://go.microsoft.com/fwlink/p/?LinkId=262039
-[Get started with Mobile Services]: ./mobile-services-get-started.md
-[Get started with authentication]: ./mobile-services-get-started-with-users-dotnet.md
-[Get started with push notifications]: ./mobile-services-get-started-with-push-dotnet.md
-[Authorize users with scripts]: ./mobile-services-authorize-users-dotnet.md
-[JavaScript and HTML]: ./mobile-services-get-started-with-users-js.md
-[WindowsAzure.com]: http://www.windowsazure.com/
-[Windows Azure Management Portal]: https://manage.windowsazure.com/
View
42 DevCenter/Mobile/Chunks/mobile-twitter-auth-steps.md
@@ -1,42 +0,0 @@
-<div class="dev-callout"><b>Note</b>
-<p>To complete the procedure in this topic, you must have a Twitter account that has a verified email address. To create a new Twitter account, go to <a href="http://go.microsoft.com/fwlink/p/?LinkID=268287" target="_blank">twitter.com</a>.</p>
-</div>
-
-1. Navigate to the [Twitter Developers] web site, sign-in with your Twitter account credentials, and then click **Create an app**.
-
- ![][1]
-
-2. Type the **Name**, **Description**, and **Website** for your app, and type the URL of the mobile service in **Callback URL**.
-
- ![][2]
-
-3. At the bottom the page, read and accept the terms, type the correct CAPTCHA words, and then click **Create your Twitter application**.
-
- ![][3]
-
- This reigsters the app displays the application details.
-
-6. Make a note of the values of **Consumer key** and **Consumer secret**.
-
- ![][4]
-
- <div class="dev-callout"><b>Security Note</b>
- <p>The consumer secret is an important security credential. Do not share this secret with anyone or distribute it with your app.</p>
- </div>
-
-You are now ready to integrate authentication by using Twitter into your app by providing the consumer key and consumer secret values to Mobile Services.
-
-<!-- Anchors. -->
-
-<!-- Images. -->
-[1]: ../Media/mobile-services-twitter-developers.png
-[2]: ../Media/mobile-services-twitter-register-app1.png
-[3]: ../Media/mobile-services-twitter-register-app2.png
-[4]: ../Media/mobile-services-twitter-app-details.png
-
-<!-- URLs. -->
-[twitter.com]: http://go.microsoft.com/fwlink/p/?LinkId=268287
-[Twitter Developers]: http://go.microsoft.com/fwlink/?LinkId=268300
-[Get started with authentication]: ./mobile-services-get-started-with-users-dotnet.md
-[WindowsAzure.com]: http://www.windowsazure.com/
-[Windows Azure Management Portal]: https://manage.windowsazure.com/
View
2  DevCenter/Mobile/HowTo/mobile-services-register-facebook-auth.md
@@ -10,7 +10,7 @@ This topic shows you how to register your apps to be able to use Facebook to aut
<p>To complete the procedure in this topic, you must have a Facebook account that has a verified email address and a mobile phone number. To create a new Facebook account, go to <a href="http://go.microsoft.com/fwlink/p/?LinkId=268285" target="_blank">facebook.com</a>.</p>
</div>
-1. Navigate to the [Facebook Developers] web site and sign-in with your Facebook account credentials.
+1. Navigate to the <a href="http://go.microsoft.com/fwlink/p/?LinkId=268286" target="_blank">Facebook Developers</a> web site and sign-in with your Facebook account credentials.
2. (Optional) If you have not already registered, click **Register Now** button, accept the policy, provide any and then click **Done**.
View
4 DevCenter/Mobile/HowTo/mobile-services-register-google-auth.md
@@ -10,7 +10,7 @@ This topic shows you how to register your apps to be able to use Google to authe
<p>To complete the procedure in this topic, you must have a Google account that has a verified email address. To create a new Google account, go to <a href="http://go.microsoft.com/fwlink/p/?LinkId=268302" target="_blank">accounts.google.com</a>.</p>
</div>
-1. Navigate to the [Google apis] web site, sign-in with your Google account credentials, and then click **Create project...**.
+1. Navigate to the <a href="http://go.microsoft.com/fwlink/p/?LinkId=268303" target="_blank">Google apis</a> web site, sign-in with your Google account credentials, and then click **Create project...**.
![][1]
@@ -22,7 +22,7 @@ This topic shows you how to register your apps to be able to use Google to authe
![][3]
-4. Under **Client ID Settings**, select **Web application**, type your mobile service URL in **Your site or hostname**, click **more options**, add your mobile service URL to the list of **Authorized Redirect URIs**, and then click **Create client ID**.
+4. Under **Client ID Settings**, select **Web application**, type your mobile service URL in **Your site or hostname**, click **more options**, replace the generated URL in **Authorized Redirect URIs** with the URL of your mobile service appended with the path _/login/google_, and then click **Create client ID**.
![][4]
View
9 DevCenter/Mobile/HowTo/mobile-services-register-ms-account-auth.md
@@ -10,7 +10,7 @@ This topic shows you how to register your apps to be able to use Live Connect as
<p>When you intend to also provide single sign-on or push notifications from a Windows Store app, consider also registering your app with the Windows Store. For more information, see <a href="/en-us/develop/mobile/howto/register-for-live-connect-auth">Register your Windows Store apps for Windows Live Connect authentication</a>.</p>
</div>
-1. Navigate to the [My Applications] page in the Live Connect Developer Center, and log on with your Microsoft account, if required.
+1. Navigate to the <a href="http://go.microsoft.com/fwlink/p/?LinkId=262039" target="_blank">My Applications</a> page in the Live Connect Developer Center, and log on with your Microsoft account, if required.
2. Click **Create application**, then type an **Application name** and click **I accept**.
@@ -18,7 +18,7 @@ This topic shows you how to register your apps to be able to use Live Connect as
This registers the application with Live Connect.
-10. Make a note of the value of **Client ID** and **Client secret**.
+10. Click **Application settings page**, then **API Settings** and make a note of the values of the **Client ID** and **Client secret**.
![][2]
@@ -26,14 +26,15 @@ This topic shows you how to register your apps to be able to use Live Connect as
<p>The client secret is an important security credential. Do not share the client secret with anyone or distribute it with your app.</p>
</div>
+11. In **Redirect domain**, enter the URL of your mobile service from Step 8, and then click **Save**.
+
You are now ready to use a Microsoft Account for authentication in your app by providing the client ID and client secret values to Mobile Services.
<!-- Anchors. -->
<!-- Images. -->
[1]: ../Media/mobile-services-live-connect-add-app.png
-[2]: ../Media/mobile-services-live-connect-app-details.png
-
+[2]: ../Media/mobile-live-connect-app-api-settings.png
<!-- URLs. -->
[Single sign-on for Windows Store apps by using Live Connect]: ./mobile-services-register-for-single-sign-in.md
[Submit an app page]: http://go.microsoft.com/fwlink/p/?LinkID=266582
View
8 DevCenter/Mobile/HowTo/mobile-services-register-twitter-auth.md
@@ -2,7 +2,7 @@
<div class="umbMacroHolder" title="This is rendered content from macro" onresizestart="return false;" umbpageid="14798" ismacro="true" umb_chunkname="MobileArticleLeft" umb_chunkpath="devcenter/Menu" umb_macroalias="AzureChunkDisplayer" umb_hide="0" umb_modaltrigger="" umb_chunkurl="" umb_modalpopup="0"><!-- startUmbMacro --><span><strong>Azure Chunk Displayer</strong><br />No macro content available for WYSIWYG editing</span><!-- endUmbMacro --></div>
-# Register your apps for Twitter login with Mobile Services
+#Register your apps for Twitter login with Mobile Services
This topic shows you how to register your apps to be able to use Twitter to authenticate with Windows Azure Mobile Services.
@@ -10,11 +10,11 @@ This topic shows you how to register your apps to be able to use Twitter to auth
<p>To complete the procedure in this topic, you must have a Twitter account that has a verified email address. To create a new Twitter account, go to <a href="http://go.microsoft.com/fwlink/p/?LinkID=268287" target="_blank">twitter.com</a>.</p>
</div>
-1. Navigate to the [Twitter Developers] web site, sign-in with your Twitter account credentials, and then click **Create an app**.
+1. Navigate to the <a href="http://go.microsoft.com/fwlink/p/?LinkId=268300" target="_blank">Twitter Developers</a> web site, sign-in with your Twitter account credentials, and then click **Create an app**.
![][1]
-2. Type the **Name**, **Description**, and **Website** for your app, and type the URL of the mobile service in **Callback URL**.
+2. Type the **Name**, **Description**, and **Website** values for your app, and type the URL of the mobile service in **Callback URL**.
![][2]
@@ -44,7 +44,7 @@ You are now ready to use a Twitter login for authentication in your app by provi
<!-- URLs. -->
[twitter.com]: http://go.microsoft.com/fwlink/p/?LinkId=268287
-[Twitter Developers]: http://go.microsoft.com/fwlink/?LinkId=268300
+[Twitter Developers]: http://go.microsoft.com/fwlink/p/?LinkId=268300
[Get started with authentication]: ./mobile-services-get-started-with-users-dotnet.md
[WindowsAzure.com]: http://www.windowsazure.com/
[Windows Azure Management Portal]: https://manage.windowsazure.com/
View
BIN  DevCenter/Mobile/Media/mobile-live-connect-app-api-settings.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  DevCenter/Mobile/Media/mobile-services-google-create-client3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
7 DevCenter/Mobile/Tutorials/mobile-services-authorize-users-dotnet.md
@@ -2,7 +2,7 @@
<div class="umbMacroHolder" title="This is rendered content from macro" onresizestart="return false;" umbpageid="14810" ismacro="true" umb_chunkname="MobileArticleLeft" umb_chunkpath="devcenter/Menu" umb_macroalias="AzureChunkDisplayer" umb_hide="0" umb_modaltrigger="" umb_chunkurl="" umb_modalpopup="0"><!-- startUmbMacro --><span><strong>Azure Chunk Displayer</strong><br />No macro content available for WYSIWYG editing</span><!-- endUmbMacro --></div>
-<div class="dev-center-os-selector">
+<!--<div class="dev-center-os-selector">
<a href="/en-us/develop/mobile/tutorials/authorize-users-in-scripts-dotnet/" title="Windows Store version" class="current">Windows Store app</a>
<a href="/en-us/develop/mobile/tutorials/authorize-users-in-scripts-ios/" title="iOS version">iOS app</a>
<span>Tutorial</span>
@@ -11,11 +11,10 @@
<a href="/en-us/develop/mobile/tutorials/authorize-users-in-scripts-dotnet/" title=".NET client version" class="current">C# and XAML</a>
<a href="/en-us/develop/mobile/tutorials/authorize-users-in-scripts-js/" title="JavaScript client version">JavaScript and HTML</a>
<span>Tutorial</span>
-</div>
+</div>-->
# Use scripts to authorize users in Mobile Services for Windows Store
-
-Language: **C# and XAML**
+<h3><strong>Windows Store C#</strong> / <a href="/en-us/develop/mobile/tutorials/authorize-users-in-scripts-js">Windows Store JavaScript</a> / <a href="/en-us/develop/mobile/tutorials/authorize-users-in-scripts-ios">iOS</a></h3>
This topic shows you how to use server scripts to authorize authenticated users for accessing data in Windows Azure Mobile Services from a Windows Store app. In this tutorial you register scripts with Mobile Services to filter queries based on the userId of an authenticated user, ensuring that each user can see only their own data.
View
6 DevCenter/Mobile/Tutorials/mobile-services-authorize-users-ios.md
@@ -2,13 +2,13 @@
<div class="umbMacroHolder" title="This is rendered content from macro" onresizestart="return false;" umbpageid="14810" ismacro="true" umb_chunkname="MobileArticleLeft" umb_chunkpath="devcenter/Menu" umb_macroalias="AzureChunkDisplayer" umb_hide="0" umb_modaltrigger="" umb_chunkurl="" umb_modalpopup="0"><!-- startUmbMacro --><span><strong>Azure Chunk Displayer</strong><br />No macro content available for WYSIWYG editing</span><!-- endUmbMacro --></div>
-<div class="dev-center-os-selector">
+<!--<div class="dev-center-os-selector">
<a href="/en-us/develop/mobile/tutorials/authorize-users-in-scripts-dotnet/" title="Windows Store version">Windows Store app</a>
<a href="/en-us/develop/mobile/tutorials/authorize-users-in-scripts-ios/" title="iOS version" class="current">iOS app</a>
- <span>Tutorial</span>
-</div>
+</div>-->
# Use scripts to authorize users in Mobile Services for iOS
+<h3><a href="authorize-users-in-scripts-dotnet">Windows Store</a> / <strong>iOS</strong></h3>
_The iOS client library for Mobile Services is currently under development on [GitHub]. We welcome feedback on and contributions to this library._
View
5 DevCenter/Mobile/Tutorials/mobile-services-authorize-users-js.md
@@ -2,7 +2,7 @@
<div class="umbMacroHolder" title="This is rendered content from macro" onresizestart="return false;" umbpageid="14810" ismacro="true" umb_chunkname="MobileArticleLeft" umb_chunkpath="devcenter/Menu" umb_macroalias="AzureChunkDisplayer" umb_hide="0" umb_modaltrigger="" umb_chunkurl="" umb_modalpopup="0"><!-- startUmbMacro --><span><strong>Azure Chunk Displayer</strong><br />No macro content available for WYSIWYG editing</span><!-- endUmbMacro --></div>
-<div class="dev-center-os-selector">
+<!--<div class="dev-center-os-selector">
<a href="/en-us/develop/mobile/tutorials/authorize-users-in-scripts-js/" title="Windows Store version" class="current">Windows Store app</a>
<a href="/en-us/develop/mobile/tutorials/authorize-users-in-scripts-ios/" title="iOS version">iOS app</a>
<span>Tutorial</span>
@@ -11,9 +11,10 @@
<a href="/en-us/develop/mobile/tutorials/authorize-users-in-scripts-dotnet/" title=".NET client version" class="current">C# and XAML</a>
<a href="/en-us/develop/mobile/tutorials/authorize-users-in-scripts-js/" title="JavaScript client version">JavaScript and HTML</a>
<span>Tutorial</span>
-</div>
+</div>-->
# Use scripts to authorize users in Mobile Services for Windows Store
+<h3><strong>Windows Store</strong> / <a href="authorize-users-in-scripts-ios">iOS</a></h3>
This topic shows you how to use server scripts to authorize authenticated users for accessing data in Windows Azure Mobile Services from a Windows Store app. In this tutorial you register scripts with Mobile Services to filter queries based on the userId of an authenticated user, ensuring that each user can see only their own data.
View
5 DevCenter/Mobile/Tutorials/mobile-services-get-started-ios.md
@@ -1,13 +1,14 @@
<properties linkid="mobile-services-get-started" urldisplayname="Mobile Services" headerexpose="" pagetitle="Get started with Mobile Services in Windows Azure" metakeywords="Get started Windows Azure Mobile Services, mobile devices, Windows Azure, mobile, iOS, iPad app, iPhone app, " footerexpose="" metadescription="Get started using Windows Azure Mobile Services in your iOS apps." umbraconavihide="0" disquscomments="1"></properties>
<div class="umbMacroHolder" title="This is rendered content from macro" onresizestart="return false;" umbpageid="14812" ismacro="true" umb_chunkname="MobileArticleLeft" umb_chunkpath="devcenter/Menu" umb_macroalias="AzureChunkDisplayer" umb_hide="0" umbversionid="254ca664-c4f3-4815-8073-c86d43f4aa16" umb_modaltrigger="" umb_chunkurl="" umb_modalpopup="0"><!-- startUmbMacro --><span><strong>Azure Chunk Displayer</strong><br />No macro content available for WYSIWYG editing</span><!-- endUmbMacro --></div>
-<div class="dev-center-os-selector">
+<!--<div class="dev-center-os-selector">
<a href="/en-us/develop/mobile/tutorials/get-started/" title="Windows Store version">Windows Store app</a>
<a href="/en-us/develop/mobile/tutorials/get-started-ios/" title="iOS version" class="current">iOS app</a>
<span>Tutorial</span>
-</div>
+</div>-->
# <a name="getting-started"> </a>Get started with Mobile Services for iOS
+<h3><a href="/en-us/develop/mobile/tutorials/get-started">Windows Store</a> / <strong>iOS</strong></h3>
This tutorial shows you how to add a cloud-based backend service to an iOS app using Windows Azure Mobile Services. In this tutorial, you will create both a new mobile service and a simple _To do list_ app that stores app data in the new mobile service.
View
15 DevCenter/Mobile/Tutorials/mobile-services-get-started-with-data-dotnet.md
@@ -2,18 +2,13 @@
<div class="umbMacroHolder" title="This is rendered content from macro" onresizestart="return false;" umbpageid="14798" ismacro="true" umb_chunkname="MobileArticleLeft" umb_chunkpath="devcenter/Menu" umb_macroalias="AzureChunkDisplayer" umb_hide="0" umb_modaltrigger="" umb_chunkurl="" umb_modalpopup="0"><!-- startUmbMacro --><span><strong>Azure Chunk Displayer</strong><br />No macro content available for WYSIWYG editing</span><!-- endUmbMacro --></div>
-<div class="dev-center-os-selector">
- <a href="/en-us/develop/mobile/tutorials/get-started-with-data-dotnet/" title="Windows Store version" class="current">Windows Store app</a>
- <a href="/en-us/develop/mobile/tutorials/get-started-with-data-ios/" title="iOS version">iOS app</a>
- <span>Tutorial</span>
-</div>
-<div class="dev-center-os-selector">
- <a href="/en-us/develop/mobile/tutorials/get-started-with-data-dotnet/" title=".NET client version" class="current">C# and XAML</a>
- <a href="/en-us/develop/mobile/tutorials/get-started-with-data-js/" title="JavaScript client version">JavaScript and HTML</a>
- <span>Tutorial</span>
-</div>
+<!--<div class="dev-center-os-selector">
+ <a href="/en-us/develop/mobile/tutorials/get-started-with-data-dotnet/" title="Windows Store version" class="current">Windows Store</a>
+ <a href="/en-us/develop/mobile/tutorials/get-started-with-data-ios/" title="iOS version">iOS</a>
+</div>-->
# Get started with data in Mobile Services for Windows Store
+<h3><strong>Windows Store C#</strong> / <a href="/en-us/develop/mobile/tutorials/get-started-with-data-js">Windows Store JavaScript</a> / <a href="/en-us/develop/mobile/tutorials/get-started-with-data-ios">iOS</a></h3>
This topic shows you how to use Windows Azure Mobile Services to leverage data in a Windows Store app. In this tutorial, you will download an app that stores data in memory, create a new mobile service, integrate the mobile service with the app, and then login to the Windows Azure Management Portal to view changes to data made when running the app.
View
60 DevCenter/Mobile/Tutorials/mobile-services-get-started-with-data-ios.md
@@ -2,13 +2,13 @@
<div class="umbMacroHolder" title="This is rendered content from macro" onresizestart="return false;" umbpageid="14798" ismacro="true" umb_chunkname="MobileArticleLeft" umb_chunkpath="devcenter/Menu" umb_macroalias="AzureChunkDisplayer" umb_hide="0" umb_modaltrigger="" umb_chunkurl="" umb_modalpopup="0"><!-- startUmbMacro --><span><strong>Azure Chunk Displayer</strong><br />No macro content available for WYSIWYG editing</span><!-- endUmbMacro --></div>
-<div class="dev-center-os-selector">
+<!--<div class="dev-center-os-selector">
<a href="/en-us/develop/mobile/tutorials/get-started-with-data-dotnet/" title="Windows Store version">Windows Store app</a>
<a href="/en-us/develop/mobile/tutorials/get-started-with-data-ios/" title="iOS version" class="current">iOS app</a>
- <span>Tutorial</span>
-</div>
+</div>-->
# Get started with data in Mobile Services for iOS
+<h3><a href="/en-us/develop/mobile/tutorials/get-started-with-data-dotnet">Windows Store C#</a> / <a href="/en-us/develop/mobile/tutorials/get-started-with-data-js">Windows Store JavaScript</a> / <strong>iOS</strong></h3>
_The iOS client library for Mobile Services is currently under development on [GitHub][GitHub repo]. We welcome feedback on and contributions to this library._
@@ -20,13 +20,13 @@ This topic shows you how to use Windows Azure Mobile Services to leverage data i
This tutorial walks you through these basic steps:
-1. [Download the Windows Store app project][Get the Windows Store app]
+1. [Download the iOS app project][GitHub]
2. [Create the mobile service]
3. [Add a data table for storage]
4. [Update the app to use Mobile Services]
5. [Test the app against Mobile Services]
-This tutorial requires the [Mobile Services iOS SDK] and [XCode][Install Xcode].
+This tutorial requires the [Mobile Services iOS SDK] and [XCode 4.5][Install Xcode] or a later version.
## <a name="download-app"></a><h2><span class="short-header">Download the project</span>Download the GetStartedWithData project</h2>
@@ -36,7 +36,7 @@ This tutorial is built on the [GetStartedWithData app][GitHub], which is an iOS
2. In Xcode, open the downloaded project and examine the TodoService.m file.
- Notice that there are five // TODO comments that specify the steps you must take to make this app work with your mobile service.
+ Notice that there are eight // TODO comments that specify the steps you must take to make this app work with your mobile service.
3. Press the **Run** button (or the Command+R key) to rebuild the project and start the app.
@@ -122,27 +122,31 @@ You are now ready to use the new mobile service as data storage for the app.
Now that your mobile service is ready, you can update the app to store items in Mobile Services instead of the local collection.
-0. If you haven't already installed the [Mobile Services SDK], install it now.
+1. If you haven't already installed the [Mobile Services iOS SDK], install it now.
-1. In the Project Navigator in Xcode, open both the TodoService.m and TodoService.h files located in the Quickstart folder, and add the following import statement:
+2. In the Project Navigator in Xcode, open both the TodoService.m and TodoService.h files located in the Quickstart folder, and add the following import statement:
#import <WindowsAzureMobileServices/WindowsAzureMobileServices.h>
-2. In Xcode, open the file TodoService.m, and locate the following commented line of code:
+3. In the ToDoService.h file, locate the following commented line of code:
- // Create an MSTable property for your items.
+ // Create an MSClient property comment in the #interface declaration for the TodoService.
- After this comment, create a property representation for your mobile services table by adding the following line of code inside the @interface declaration:
+ After this comment, add the following line of code:
- @property (nonatomic, strong) MSTable *table;
+ @property (nonatomic, strong) MSClient *client;
-4. Open the ToDoService.h file and locate following commented line of code:
+ This creates a property that represents the MSClient that connects to the service
- // Create an MSClient property comment in the #interface declaration for the TodoService.
+4. In the file TodoService.m, locate the following commented line of code:
+
+ // Create an MSTable property for your items.
- After this comment, add the following line of code to create a property that represents the MSClient that connects to the service:
+ After this comment, add the following line of code inside the @interface declaration:
- @property (nonatomic, strong) MSClient *client;
+ @property (nonatomic, strong) MSTable *table;
+
+ This creates a property representation for your mobile services table.
6. In the Management Portal, click **Mobile Services**, and then click the mobile service you just created.
@@ -152,32 +156,38 @@ Now that your mobile service is ready, you can update the app to store items in
You will need these values when accessing the mobile service from your app code.
-8. Back in Xcode, open the TodoService.m and locate the following commented line of code:
+8. Back in Xcode, open TodoService.m and locate the following commented line of code:
- // Initialize the Mobile Service client with your URL and key
+ // Initialize the Mobile Service client with your URL and key.
- After this comment, add the following line of code that creates a client instance:
+ After this comment, add the following line of code:
self.client = [MSClient clientWithApplicationURLString:@”APPURL” withApplicationKey:@"APPKEY"];
+ This creates an instance of the Mobile Services client.
+
9. Replace the values of **APPURL** and **APPKEY** in this code with the URL and application key from the mobile service that you acquired in step 6.
10. Locate the following commented line of code:
// Create an MSTable instance to allow us to work with the TodoItem table.
- After this comment, add the following line of code that creates a table instance:
+ After this comment, add the following line of code:
+
+ self.table = [self.client getTable:@"TodoItem"];
- self.table = [_client getTable:@"TodoItem"];
+ This creates the TodoItem table instance.
11. Locate the following commented line of code:
// Create a predicate that finds items where complete is false comment in the refreshDataOnSuccess method.
- After this comment, add the following line of code that creates a query to find all tasks that have not yet been completed:
+ After this comment, add the following line of code:
NSPredicate * predicate = [NSPredicate predicateWithFormat:@"complete == NO"];
+ This creates a query to return all tasks that have not yet been completed.
+
12. Locate the following commented line of code:
// Query the TodoItem table and update the items property with the results from the service.
@@ -185,9 +195,9 @@ Now that your mobile service is ready, you can update the app to store items in
Replace that comment and the subsequent **completion** block invocation with the following code:
// Query the TodoItem table and update the items property with the results from the service
- [self.table readWhere:predicate completion:^(NSArray *results, NSInteger totalCount, NSError *error) {
- items = [results mutableCopy];
-
+ [self.table readWhere:predicate completion:^(NSArray *results, NSInteger totalCount, NSError *error)
+ {
+ self.items = [results mutableCopy];
completion();
}];
View
15 DevCenter/Mobile/Tutorials/mobile-services-get-started-with-data-js.md
@@ -2,18 +2,13 @@
<div class="umbMacroHolder" title="This is rendered content from macro" onresizestart="return false;" umbpageid="14798" ismacro="true" umb_chunkname="MobileArticleLeft" umb_chunkpath="devcenter/Menu" umb_macroalias="AzureChunkDisplayer" umb_hide="0" umb_modaltrigger="" umb_chunkurl="" umb_modalpopup="0"><!-- startUmbMacro --><span><strong>Azure Chunk Displayer</strong><br />No macro content available for WYSIWYG editing</span><!-- endUmbMacro --></div>
-<div class="dev-center-os-selector">
- <a href="/en-us/develop/mobile/tutorials/get-started-with-data-js/" title="Windows Store version" class="current">Windows Store app</a>
- <a href="/en-us/develop/mobile/tutorials/get-started-with-data-ios/" title="iOS version">iOS app</a>
- <span>Tutorial</span>
-</div>
-<div class="dev-center-os-selector">
- <a href="/en-us/develop/mobile/tutorials/get-started-with-data-dotnet/" title=".NET client version">C# and XAML</a>
- <a href="/en-us/develop/mobile/tutorials/get-started-with-data-js/" title="JavaScript client version" class="current">JavaScript and HTML</a>
- <span>Tutorial</span>
-</div>
+<!--<div class="dev-center-os-selector">
+ <a href="/en-us/develop/mobile/tutorials/get-started-with-data-js/" title="Windows Store version" class="current">Windows Store</a>
+ <a href="/en-us/develop/mobile/tutorials/get-started-with-data-ios/" title="iOS version">iOS</a>
+</div>-->
# Get started with data in Mobile Services for Windows Store
+<h3><a href="/en-us/develop/mobile/tutorials/get-started-with-data-dotnet">Windows Store C#</a> / <strong>Windows Store JavaScript</strong> / <a href="/en-us/develop/mobile/tutorials/get-started-with-data-ios">iOS</a></h3>
This topic shows you how to use Windows Azure Mobile Services to leverage data in a Windows Store app. In this tutorial, you will download an app that stores data in memory, create a new mobile service, integrate the mobile service with the app, and then login to the Windows Azure Management Portal to view changes to data made when running the app.
View
7 DevCenter/Mobile/Tutorials/mobile-services-get-started-with-push-dotnet.md
@@ -2,13 +2,14 @@
<div class="umbMacroHolder" title="This is rendered content from macro" onresizestart="return false;" umbpageid="14799" ismacro="true" umb_chunkname="MobileArticleLeft" umb_chunkpath="devcenter/Menu" umb_macroalias="AzureChunkDisplayer" umb_hide="0" umb_modaltrigger="" umb_chunkurl="" umb_modalpopup="0"><!-- startUmbMacro --><span><strong>Azure Chunk Displayer</strong><br />No macro content available for WYSIWYG editing</span><!-- endUmbMacro --></div>
-<div class="dev-center-os-selector">
+<!--<div class="dev-center-os-selector">
<a href="/en-us/develop/mobile/tutorials/get-started-with-push-dotnet/" title=".NET client version" class="current">C# and XAML</a>
<a href="/en-us/develop/mobile/tutorials/get-started-with-push-js/" title="JavaScript client version">JavaScript and HTML</a>
<span>Tutorial</span>
-</div>
+</div>-->
-# Get started with push notifications in Mobile Services
+# Get started with push notifications in Mobile Services for Windows Store
+<h3><strong>Windows Store C#</strong> / <a href="/en-us/develop/mobile/tutorials/get-started-with-push-js">Windows Store JavaScript</a></h3>
This topic shows you how to use Windows Azure Mobile Services to send push notifications to a Windows Store app.
In this tutorial you add push notifications using the Windows Push Notification service (WNS) to the quickstart project. When complete, your mobile service will send a push notification each time a record is inserted.
View
7 DevCenter/Mobile/Tutorials/mobile-services-get-started-with-push-js.md
@@ -2,13 +2,14 @@
<div class="umbMacroHolder" title="This is rendered content from macro" onresizestart="return false;" umbpageid="14799" ismacro="true" umb_chunkname="MobileArticleLeft" umb_chunkpath="devcenter/Menu" umb_macroalias="AzureChunkDisplayer" umb_hide="0" umb_modaltrigger="" umb_chunkurl="" umb_modalpopup="0"><!-- startUmbMacro --><span><strong>Azure Chunk Displayer</strong><br />No macro content available for WYSIWYG editing</span><!-- endUmbMacro --></div>
-<div class="dev-center-os-selector">
+<!--<div class="dev-center-os-selector">
<a href="/en-us/develop/mobile/tutorials/get-started-with-push-dotnet/" title=".NET client version" class="current">C# and XAML</a>
<a href="/en-us/develop/mobile/tutorials/get-started-with-push-js/" title="JavaScript client version">JavaScript and HTML</a>
<span>Tutorial</span>
-</div>
+</div>-->
-# Get started with push notifications in Mobile Services
+# Get started with push notifications in Mobile Services for Windows Store
+<h3><a href="/en-us/develop/mobile/tutorials/get-started-with-push-dotnet">Windows Store C#</a> / <strong>Windows Store JavaScript</strong></h3>
This topic shows you how to use Windows Azure Mobile Services to send push notifications to a Windows Store app.
In this tutorial you add push notifications using the Windows Push Notification service (WNS) to the quickstart project. When complete, your mobile service will send a push notification each time a record is inserted.
View
20 DevCenter/Mobile/Tutorials/mobile-services-get-started-with-users-dotnet.md
@@ -2,13 +2,13 @@
<div class="umbMacroHolder" title="This is rendered content from macro" onresizestart="return false;" umbpageid="14798" ismacro="true" umb_chunkname="MobileArticleLeft" umb_chunkpath="devcenter/Menu" umb_macroalias="AzureChunkDisplayer" umb_hide="0" umb_modaltrigger="" umb_chunkurl="" umb_modalpopup="0"><!-- startUmbMacro --><span><strong>Azure Chunk Displayer</strong><br />No macro content available for WYSIWYG editing</span><!-- endUmbMacro --></div>
-<div class="dev-center-os-selector">
- <a href="/en-us/develop/mobile/tutorials/get-started-with-users-dotnet/" title=".NET client version" class="current">C# and XAML</a>
- <a href="/en-us/develop/mobile/tutorials/get-started-with-users-js/" title="JavaScript client version">JavaScript and HTML</a>
- <span>Tutorial</span>
-</div>
+<!--<div class="dev-center-os-selector">
+ <a href="/en-us/develop/mobile/tutorials/get-started-with-users-dotnet/" title="Windows Store version" class="current">Windows Store</a>
+ <a href="/en-us/develop/mobile/tutorials/get-started-with-users-ios/" title="iOS version">iOS</a>
+</div>-->
-# Get started with authentication in Mobile Services
+# Get started with authentication in Mobile Services for Windows Store
+<h3><strong>Windows Store C#</strong> / <a href="/en-us/develop/mobile/tutorials/get-started-with-users-js">Windows Store JavaScript</a> / <a href="/en-us/develop/mobile/tutorials/get-started-with-users-ios">iOS</a></h3>
This topic shows you how to authenticate users in Windows Azure Mobile Services from your app. In this tutorial, you add authentication to the quickstart project using an identity provider that is supported by Mobile Services. After being successfully authenticated and authorized by Mobile Services, the user ID value is displayed.
@@ -63,11 +63,11 @@ Both your mobile service and your app are now configured to work with your chose
3. In Visual Studio 2012 Express for Windows 8, open the project that you created when you completed the tutorial [Get started with Mobile Services].
-4. Press the F5 key to run this quickstart-based app; verify that an exception with a status code of 401 (Unauthorized) is raised.
+4. Press the F5 key to run this quickstart-based app; verify that an unhandled exception with a status code of 401 (Unauthorized) is raised after the app starts.
- This happens because the app is accessing Mobile Services as an unauthenticated user, but the _TodoItem_ table now requires authentication.
+ This happens because the app attempts to access Mobile Services as an unauthenticated user, but the _TodoItem_ table now requires authentication.
-Next, you will update the app to authenticate users with Live Connect before requesting resources from the mobile service.
+Next, you will update the app to authenticate users before requesting resources from the mobile service.
<a name="add-authentication"></a><h2><span class="short-header">Add authentication</span>Add authentication to the app</h2>
@@ -109,7 +109,7 @@ Next, you will update the app to authenticate users with Live Connect before req
This creates a member variable for storing the current user and a method to handle the authentication process. The user is authenticated by using a Facebook login.
<div class="dev-callout"><b>Note</b>
- <p>If you are using an identity provider other than Facebook, change the value of MobileServiceAuthenticationProvider above to the value for your provider.</p>
+ <p>If you are using an identity provider other than Facebook, change the value of <strong>MobileServiceAuthenticationProvider</strong> above to the value for your provider.</p>
</div>
8. Replace the existing **OnNavigatedTo** event handler with the handler that calls the new **Authenticate** method:
View
99 DevCenter/Mobile/Tutorials/mobile-services-get-started-with-users-ios.md
@@ -2,13 +2,13 @@
<div class="umbMacroHolder" title="This is rendered content from macro" onresizestart="return false;" umbpageid="14798" ismacro="true" umb_chunkname="MobileArticleLeft" umb_chunkpath="devcenter/Menu" umb_macroalias="AzureChunkDisplayer" umb_hide="0" umb_modaltrigger="" umb_chunkurl="" umb_modalpopup="0"><!-- startUmbMacro --><span><strong>Azure Chunk Displayer</strong><br />No macro content available for WYSIWYG editing</span><!-- endUmbMacro --></div>
-<div class="dev-center-os-selector">
- <a href="/en-us/develop/mobile/tutorials/get-started-with-users-dotnet/" title="Windows Store version">Windows Store app</a>
- <a href="/en-us/develop/mobile/tutorials/get-started-with-users-ios/" title="iOS version" class="current">iOS app</a>
- <span>Tutorial</span>
-</div>
+<!--<div class="dev-center-os-selector">
+ <a href="/en-us/develop/mobile/tutorials/get-started-with-users-dotnet/" title="Windows Store version">Windows Store</a>
+ <a href="/en-us/develop/mobile/tutorials/get-started-with-users-ios/" title="iOS version" class="current">iOS</a>
+</div>-->
# Get started with authentication in Mobile Services for iOS
+<h3><a href="/en-us/develop/mobile/tutorials/get-started-with-users-dotnet">Windows Store C#</a> / <a href="/en-us/develop/mobile/tutorials/get-started-with-users-js">Windows Store JavaScript</a> / <strong>iOS</strong></h3>
_The iOS client library for Mobile Services is currently under development on [GitHub]. We welcome feedback on and contributions to this library._
@@ -22,9 +22,9 @@ This tutorial walks you through these basic steps to enable authentication in yo
This tutorial is based on the Mobile Services quickstart. You must also first complete the tutorial [Get started with Mobile Services].
-<div class="dev-callout"><b>Note</b>
+<!--<div class="dev-callout"><b>Note</b>
<p>This tutorial demonstrates the basic method provided by Mobile Services to authenticate users by using a variety of identity providers. This method is easy to configure and supports multiple providers. However, this method also requires users to log-in every time your app starts. To instead use Live Connect to provide a single sign-on experience in your Windows Store app, see the topic <a href="/en-us/develop/mobile/tutorials/single-sign-on-win8-dotnet">Single sign-on for Windows Store apps by using Live Connect</a>.</p>
-</div>
+</div>-->
<a name="register"></a><h2><span class="short-header">Register your app</span>Register your app for authentication and configure Mobile Services</h2>
@@ -65,62 +65,71 @@ Both your mobile service and your app are now configured to work with your chose
3. In Xcode, open the project that you created when you completed the tutorial [Get started with Mobile Services].
-4. Press the **Run** button to build the project and start the app in the iPhone emulator; verify that an exception with a status code of 401 (Unauthorized) is raised.
+4. Press the **Run** button to build the project and start the app in the iPhone emulator; verify that an unhandled exception with a status code of 401 (Unauthorized) is raised after the app starts.
- This happens because the app is accessing Mobile Services as an unauthenticated user, but the _TodoItem_ table now requires authentication.
+ This happens because the app attempts to access Mobile Services as an unauthenticated user, but the _TodoItem_ table now requires authentication.
-Next, you will update the app to authenticate users with Live Connect before requesting resources from the mobile service.
+Next, you will update the app to authenticate users before requesting resources from the mobile service.
<a name="add-authentication"></a><h2><span class="short-header">Add authentication</span>Add authentication to the app</h2>
-5. Open the project file mainpage.xaml.cs and add the following using statement:
+5. Open the project file TodoListController.m and in the **@interface TodoListController** declaration block, add the following code:
- using Windows.UI.Popups;
+ @property (strong, nonatomic) TodoService *todoService;
-6. Add the following code snippet to the MainPage class:
+6. In the **@interface TodoListController** declaration block, add the following code:
- private MobileServiceUser user;
- private async System.Threading.Tasks.Task Authenticate()
+ @synthesize todoService;
+
+7. In the **viewDidLoad** method, remove the following code that reloads the data into the table:
+
+ [todoService refreshDataOnSuccess:^{
+ [self.tableView reloadData];
+ }];
+
+7. Just after the **viewDidLoad** method, add the following code:
+
+ - (void)viewDidAppear:(BOOL)animated
{
- while (user == null)
+ // If user is already logged in, no need to ask for auth
+ if (todoService.client.currentUser == nil)
{
+ // We want the login view to be presented after the this run loop has completed
+ // Here we use a delay to ensure this.
+ [self performSelector:@selector(login) withObject:self afterDelay:0.1];
+ }
+ }
- user = await App.MobileService
- .Login(
- MobileServiceAuthenticationProvider.Facebook);
- if (user.UserId == null)
- {
-
- var message =
- string.Format("You are now logged in - {0}", user.UserId);
- var dialog = new MessageDialog(message);
- dialog.Commands.Add(new UICommand("OK"));
- await dialog.ShowAsync();
- }
- else
- {
- user = null;
- var dialog =
- new MessageDialog("You must log in.", "Login Required");
- dialog.Commands.Add(new UICommand("OK"));
- await dialog.ShowAsync();
+ - (void) login
+ {
+ UINavigationController *controller =
+
+ [self.todoService.client
+ loginViewControllerWithProvider:@"facebook"
+ completion:^(MSUser *user, NSError *error) {
+
+ if (error) {
+ NSLog(@"Authentication Error: %@", error);
+ // Note that error.code == -1302 indicates
+ // that the user canceled the dialog
+ } else {
+ // No error, so load the data
+ [self.todoService refreshDataOnSuccess:^{
+ [self.tableView reloadData];
+ }];
}
- }
+
+ [self dismissViewControllerAnimated:YES completion:nil];
+ }];
+
+ [self presentViewController:controller animated:YES completion:nil];
}
This creates a member variable for storing the current user and a method to handle the authentication process. The user is authenticated by using a Facebook login.
<div class="dev-callout"><b>Note</b>
- <p>If you are using an identity provider other than Facebook, change the value of MobileServiceAuthenticationProvider above to the value for your provider.</p>
+ <p>If you are using an identity provider other than Facebook, change the value passed to <strong>loginViewControllerWithProvider</strong> above to one of the following: <i>microsoftaccount</i>, <i>facebook</i>, <i>twitter</i>, or <i>google</i>.</p>
</div>
-
-8. Replace the existing **OnNavigatedTo** event handler with the handler that calls the new **Authenticate** method:
-
- protected override async void OnNavigatedTo(NavigationEventArgs e)
- {
- await Authenticate();
- RefreshTodoItems();
- }
9. Press the **Run** button to build the project, start the app in the iPhone emulator, then log-on with your chosen identity provider.
View
20 DevCenter/Mobile/Tutorials/mobile-services-get-started-with-users-js.md
@@ -2,13 +2,13 @@
<div class="umbMacroHolder" title="This is rendered content from macro" onresizestart="return false;" umbpageid="14798" ismacro="true" umb_chunkname="MobileArticleLeft" umb_chunkpath="devcenter/Menu" umb_macroalias="AzureChunkDisplayer" umb_hide="0" umb_modaltrigger="" umb_chunkurl="" umb_modalpopup="0"><!-- startUmbMacro --><span><strong>Azure Chunk Displayer</strong><br />No macro content available for WYSIWYG editing</span><!-- endUmbMacro --></div>
-<div class="dev-center-os-selector">
- <a href="/en-us/develop/mobile/tutorials/get-started-with-users-dotnet/" title=".NET client version">C# and XAML</a>
- <a href="/en-us/develop/mobile/tutorials/get-started-with-users-js/" title="JavaScript client version" class="current">JavaScript and HTML</a>
- <span>Tutorial</span>
-</div>
+<!--<div class="dev-center-os-selector">
+ <a href="/en-us/develop/mobile/tutorials/get-started-with-users-js/" title="Windows Store version" class="current">Windows Store</a>
+ <a href="/en-us/develop/mobile/tutorials/get-started-with-users-ios/" title="iOS version">iOS</a>
+</div>-->
-# Get started with authentication in Mobile Services
+# Get started with authentication in Mobile Services for Windows Store
+<h3><a href="/en-us/develop/mobile/tutorials/get-started-with-users-dotnet">Windows Store C#</a> / <strong>Windows Store JavaScript</strong> / <a href="/en-us/develop/mobile/tutorials/get-started-with-users-ios">iOS</a></h3>
This topic shows you how to authenticate users in Windows Azure Mobile Services from your app. In this tutorial, you add authentication to the quickstart project using an identity provider that is supported by Mobile Services. After being successfully authenticated and authorized by Mobile Services, the user ID value is displayed.
@@ -63,11 +63,11 @@ Both your mobile service and your app are now configured to work with your chose
3. In Visual Studio 2012 Express for Windows 8, open the project that you created when you completed the tutorial [Get started with Mobile Services].
-4. Press the F5 key to run this quickstart-based app; verify that an exception with a status code of 401 (Unauthorized) is raised.
+4. Press the F5 key to run this quickstart-based app; verify that an unhandled exception with a status code of 401 (Unauthorized) is raised after the app starts.
- This happens because the app is accessing Mobile Services as an unauthenticated user, but the _TodoItem_ table now requires authentication.
+ This happens because the app attempts to access Mobile Services as an unauthenticated user, but the _TodoItem_ table now requires authentication.
-Next, you will update the app to authenticate users with Live Connect before requesting resources from the mobile service.
+Next, you will update the app to authenticate users before requesting resources from the mobile service.
<a name="add-authentication"></a><h2><span class="short-header">Add authentication</span>Add authentication to the app</h2>
@@ -120,7 +120,7 @@ Next, you will update the app to authenticate users with Live Connect before req
This creates a member variable for storing the current user and a method to handle the authentication process. The user is authenticated by using a Facebook login.
<div class="dev-callout"><b>Note</b>
- <p>If you are using an identity provider other than Facebook, change the value of MobileServiceAuthenticationProvider above to the value for your provider.</p>
+ <p>If you are using an identity provider other than Facebook, change the value passed to the <strong>login</strong> method above to one of the following: <i>microsoftaccount</i>, <i>facebook</i>, <i>twitter</i>, or <i>google</i>.</p>
</div>
9. Press the F5 key to run the app and sign into the app with your chosen identity provider.
View
10 DevCenter/Mobile/Tutorials/mobile-services-get-started.md
@@ -1,13 +1,13 @@
<properties linkid="mobile-services-get-started" urldisplayname="Mobile Services" headerexpose="" pagetitle="Get started with Mobile Services in Windows Azure" metakeywords="Get started Windows Azure Mobile Services, mobile devices, Windows Azure, mobile, Windows 8, WinRT app" footerexpose="" metadescription="Get started using Windows Azure Mobile Services in your Windows Store apps." umbraconavihide="0" disquscomments="1"></properties>
<div class="umbMacroHolder" title="This is rendered content from macro" onresizestart="return false;" umbpageid="14812" ismacro="true" umb_chunkname="MobileArticleLeft" umb_chunkpath="devcenter/Menu" umb_macroalias="AzureChunkDisplayer" umb_hide="0" umbversionid="254ca664-c4f3-4815-8073-c86d43f4aa16" umb_modaltrigger="" umb_chunkurl="" umb_modalpopup="0"><!-- startUmbMacro --><span><strong>Azure Chunk Displayer</strong><br />No macro content available for WYSIWYG editing</span><!-- endUmbMacro --></div>
-<div class="dev-center-os-selector">
- <a href="/en-us/develop/mobile/tutorials/get-started/" title="Windows Store version" class="current">Windows Store app</a>
- <a href="/en-us/develop/mobile/tutorials/get-started-ios/" title="iOS version">iOS app</a>
- <span>Tutorial</span>
-</div>
+<!--<div class="dev-center-os-selector">
+ <a href="/en-us/develop/mobile/tutorials/get-started/" title="Windows Store version" class="current">Windows Store</a>
+ <a href="/en-us/develop/mobile/tutorials/get-started-ios/" title="iOS version">iOS</a>
+</div>-->
# <a name="getting-started"> </a>Get started with Mobile Services for Windows Store
+<h3><strong>Windows Store</strong> / <a href="/en-us/develop/mobile/tutorials/get-started-ios">iOS</a></h3>
This tutorial shows you how to add a cloud-based backend service to a Windows Store app using Windows Azure Mobile Services. In this tutorial, you will create both a new mobile service and a simple _To do list_ app that stores app data in the new mobile service.
View
7 DevCenter/Mobile/Tutorials/mobile-services-paging-data-dotnet.md
@@ -2,14 +2,15 @@
<div class="umbMacroHolder" title="This is rendered content from macro" onresizestart="return false;" umbpageid="14809" ismacro="true" umb_chunkname="MobileArticleLeft" umb_chunkpath="devcenter/Menu" umb_macroalias="AzureChunkDisplayer" umb_hide="0" umb_modaltrigger="" umb_chunkurl="" umb_modalpopup="0"><!-- startUmbMacro --><span><strong>Azure Chunk Displayer</strong><br />No macro content available for WYSIWYG editing</span><!-- endUmbMacro --></div>
-<div class="dev-center-os-selector">
+<!--<div class="dev-center-os-selector">
<a href="/en-us/develop/mobile/tutorials/add-paging-to-data-dotnet/" title=".NET client version" class="current">C# and XAML</a>
<a href="/en-us/develop/mobile/tutorials/add-paging-to-data-js/" title="JavaScript client version">JavaScript and HTML</a>
<span>Tutorial</span>
-</div>
+</div>-->
-# Refine Mobile Services queries with paging
+# Refine Mobile Services for Windows Store queries with paging
+<h3><strong>Windows Store C#</strong> / <a href="/en-us/develop/mobile/tutorials/add-paging-to-data-js">Windows Store JavaScript</a></h3>
This topic shows you how to use paging to manage the amount of data returned to your Windows Store app from Windows Azure Mobile Services. In this tutorial, you will use the **Take** and **Skip** query methods on the client to request specific "pages" of data.
View
7 DevCenter/Mobile/Tutorials/mobile-services-paging-data-js.md
@@ -2,13 +2,14 @@
<div class="umbMacroHolder" title="This is rendered content from macro" onresizestart="return false;" umbpageid="14809" ismacro="true" umb_chunkname="MobileArticleLeft" umb_chunkpath="devcenter/Menu" umb_macroalias="AzureChunkDisplayer" umb_hide="0" umb_modaltrigger="" umb_chunkurl="" umb_modalpopup="0"><!-- startUmbMacro --><span><strong>Azure Chunk Displayer</strong><br />No macro content available for WYSIWYG editing</span><!-- endUmbMacro --></div>
-<div class="dev-center-os-selector">
+<!--<div class="dev-center-os-selector">
<a href="/en-us/develop/mobile/tutorials/add-paging-to-data-dotnet/" title=".NET client version">C# and XAML</a>
<a href="/en-us/develop/mobile/tutorials/add-paging-to-data-js/" title="JavaScript client version" class="current">JavaScript and HTML</a>
<span>Tutorial</span>
-</div>
+</div>-->
-# Refine Mobile Services queries with paging
+# Refine Mobile Services for Windows Store queries with paging
+<h3><a href="/en-us/develop/mobile/tutorials/add-paging-to-data-dotnet">Windows Store C#</a> / <strong>Windows Store JavaScript</strong></h3>
This topic shows you how to use paging to manage the amount of data returned to your Windows Store app from Windows Azure Mobile Services. In this tutorial, you will use the **Take** and **Skip** query methods on the client to request specific "pages" of data.
View
5 DevCenter/Mobile/Tutorials/mobile-services-push-notifications-to-app-users-dotnet.md
@@ -10,9 +10,8 @@
</div>
-->
-# Push notifications to users by using Mobile Services
-
-Language: **C# and XAML**
+# Push notifications to users by using Mobile Services for Windows Store
+<h3><strong>Windows Store C#</strong> / <a href="/en-us/develop/mobile/tutorials/push-notifications-to-users-js">Windows Store JavaScript</a></h3>
This topic extends the [previous push notification tutorial][Get started with push notifications] by adding a new table to store Windows Push Notification Service (WNS) channel URIs. These channels can then be used to send push notifications to users of the Windows Store app.
View
7 DevCenter/Mobile/Tutorials/mobile-services-push-notifications-to-app-users-js.md
@@ -2,13 +2,14 @@
<div class="umbMacroHolder" title="This is rendered content from macro" onresizestart="return false;" umbpageid="14827" ismacro="true" umb_chunkname="MobileArticleLeft" umb_chunkpath="devcenter/Menu" umb_macroalias="AzureChunkDisplayer" umb_hide="0" umb_modaltrigger="" umb_chunkurl="" umb_modalpopup="0"><!-- startUmbMacro --><span><strong>Azure Chunk Displayer</strong><br />No macro content available for WYSIWYG editing</span><!-- endUmbMacro --></div>
-<div class="dev-center-os-selector">
+<!--<div class="dev-center-os-selector">
<a href="/en-us/develop/mobile/tutorials/push-notifications-to-users-dotnet/" title=".NET client version" class="current">C# and XAML</a>
<a href="/en-us/develop/mobile/tutorials/push-notifications-to-users-js/" title="JavaScript client version">JavaScript and HTML</a>
<span>Tutorial</span>
-</div>
+</div>-->
-# Push notifications to users by using Mobile Services
+# Push notifications to users by using Mobile Services for Windows Store
+<h3><a href="/en-us/develop/mobile/tutorials/push-notifications-to-users-dotnet">Windows Store C#</a> / <strong>Windows Store JavaScript</strong></h3>
This topic extends the [previous push notification tutorial][Get started with push notifications] by adding a new table to store Windows Push Notification Service (WNS) channel URIs. These channels can then be used to send push notifications to users of the Windows Store app.
View
5 DevCenter/Mobile/Tutorials/mobile-services-single-sign-on-win8-dotnet.md
@@ -2,13 +2,14 @@
<div class="umbMacroHolder" title="This is rendered content from macro" onresizestart="return false;" umbpageid="14798" ismacro="true" umb_chunkname="MobileArticleLeft" umb_chunkpath="devcenter/Menu" umb_macroalias="AzureChunkDisplayer" umb_hide="0" umb_modaltrigger="" umb_chunkurl="" umb_modalpopup="0"><!-- startUmbMacro --><span><strong>Azure Chunk Displayer</strong><br />No macro content available for WYSIWYG editing</span><!-- endUmbMacro --></div>
-<div class="dev-center-os-selector">
+<!--<div class="dev-center-os-selector">
<a href="/en-us/develop/mobile/tutorials/single-sign-on-win8-dotnet/" title=".NET client version" class="current">C# and XAML</a>
<a href="/en-us/develop/mobile/tutorials/single-sign-on-win8-js/" title="JavaScript client version">JavaScript and HTML</a>
<span>Tutorial</span>
-</div>
+</div>-->
# Authenticate your Windows Store app with Live Connect single sign-on
+<h3><strong>Windows Store C#</strong> / <a href="/en-us/develop/mobile/tutorials/single-sign-on-windows-8-js">Windows Store JavaScript</a></h3>
This topic shows you how to use Live Connect single sign-on to authenticate users in Windows Azure Mobile Services from a Windows Store app. In this tutorial, you add authentication to the quickstart project using Live Connect. When successfully authenticated by Live Connect, a logged-in user is welcomed by name and the user ID value is displayed.
View
11 DevCenter/Mobile/Tutorials/mobile-services-single-sign-on-win8-js.md
@@ -2,13 +2,14 @@
<div class="umbMacroHolder" title="This is rendered content from macro" onresizestart="return false;" umbpageid="14798" ismacro="true" umb_chunkname="MobileArticleLeft" umb_chunkpath="devcenter/Menu" umb_macroalias="AzureChunkDisplayer" umb_hide="0" umb_modaltrigger="" umb_chunkurl="" umb_modalpopup="0"><!-- startUmbMacro --><span><strong>Azure Chunk Displayer</strong><br />No macro content available for WYSIWYG editing</span><!-- endUmbMacro --></div>
-<div class="dev-center-os-selector">
- <a href="/en-us/develop/mobile/tutorials/get-started-with-users-dotnet/" title=".NET client version">C# and XAML</a>
- <a href="/en-us/develop/mobile/tutorials/get-started-with-users-js/" title="JavaScript client version" class="current">JavaScript and HTML</a>
+<!--<div class="dev-center-os-selector">
+ <a href="/en-us/develop/mobile/tutorials/single-sign-on-windows-8-dotnet/" title=".NET client version">C# and XAML</a>
+ <a href="/en-us/develop/mobile/tutorials/single-sign-on-windows-8-js/" title="JavaScript client version" class="current">JavaScript and HTML</a>
<span>Tutorial</span>
-</div>
+</div>-->
-# Get started with authentication in Mobile Services
+# Get started with authentication in Mobile Services for Windows Store
+<h3><a href="/en-us/develop/mobile/tutorials/single-sign-on-windows-8-dotnet">Windows Store C#</a> / <strong>Windows Store JavaScript</strong></h3>
This topic shows you how to authenticate users in Windows Azure Mobile Services from a Windows Store app. In this tutorial, you add authentication to the quickstart project using Live Connect. When successfully authenticated by Live Connect, a logged-in user is welcomed by name and the user ID value is displayed.
View
7 DevCenter/Mobile/Tutorials/mobile-services-validate-and-modify-data-dotnet.md
@@ -2,13 +2,14 @@
<div class="umbMacroHolder" title="This is rendered content from macro" onresizestart="return false;" umbpageid="14808" ismacro="true" umb_chunkname="MobileArticleLeft" umb_chunkpath="devcenter/Menu" umb_macroalias="AzureChunkDisplayer" umb_hide="0" umb_modaltrigger="" umb_chunkurl="" umb_modalpopup="0"><!-- startUmbMacro --><span><strong>Azure Chunk Displayer</strong><br />No macro content available for WYSIWYG editing</span><!-- endUmbMacro --></div>
-<div class="dev-center-os-selector">
+<!--<div class="dev-center-os-selector">
<a href="/en-us/develop/mobile/tutorials/validate-modify-and-augment-data-dotnet/" title=".NET client version" class="current">C# and XAML</a>
<a href="/en-us/develop/mobile/tutorials/validate-modify-and-augment-data-js/" title="JavaScript client version">JavaScript and HTML</a>
<span>Tutorial</span>
-</div>
+</div>-->
-# Validate and modify data in Mobile Services using server scripts
+# Validate and modify data in Mobile Services for Windows Store by using server scripts
+<h3><strong>Windows Store C#</strong> / <a href="/en-us/develop/mobile/tutorials/validate-modify-and-augment-data-js">Windows Store JavaScript</a></h3>
This topic shows you how to leverage server scripts in Windows Azure Mobile Services. Server scripts are registered in a mobile service and can be used to perform a wide range of operations on data being inserted and updated, including validation and data modification. In this tutorial, you will define and register server scripts that validate and modify data. Because the behavior of server side scripts often affects the client, you will also update your Windows Store app to take advantage of these new behaviors.
View
7 DevCenter/Mobile/Tutorials/mobile-services-validate-and-modify-data-js.md
@@ -2,13 +2,14 @@
<div class="umbMacroHolder" title="This is rendered content from macro" onresizestart="return false;" umbpageid="14808" ismacro="true" umb_chunkname="MobileArticleLeft" umb_chunkpath="devcenter/Menu" umb_macroalias="AzureChunkDisplayer" umb_hide="0" umb_modaltrigger="" umb_chunkurl="" umb_modalpopup="0"><!-- startUmbMacro --><span><strong>Azure Chunk Displayer</strong><br />No macro content available for WYSIWYG editing</span><!-- endUmbMacro --></div>
-<div class="dev-center-os-selector">
+<!--<div class="dev-center-os-selector">
<a href="/en-us/develop/mobile/tutorials/validate-modify-and-augment-data-dotnet/" title=".NET client version">C# and XAML</a>
<a href="/en-us/develop/mobile/tutorials/validate-modify-and-augment-data-js/" title="JavaScript client version" class="current">JavaScript and HTML</a>
<span>Tutorial</span>
-</div>
+</div>-->
-# Validate and modify data in Mobile Services using server scripts
+# Validate and modify data in Mobile Services for Windows Store by using server scripts
+<h3><a href="/en-us/develop/mobile/tutorials/validate-modify-and-augment-data-dotnet">Windows Store C#</a> / <strong>Windows Store JavaScript</strong></h3>
This topic shows you how to leverage server scripts in Windows Azure Mobile Services. Server scripts are registered in a mobile service and can be used to perform a wide range of operations on data being inserted and updated, including validation and data modification. In this tutorial, you will define and register server scripts that validate and modify data. Because the behavior of server side scripts often affects the client, you will also update your Windows Store app to take advantage of these new behaviors.
Please sign in to comment.
Something went wrong with that request. Please try again.