Permalink
Browse files

Merge pull request #452 from mollybostic/weekly_1009

Merging weekly content into Master branch.
  • Loading branch information...
2 parents 2ff01a7 + 4cb38f5 commit 4e916e2740175971413c08f484efd39bee95dde1 @tysonn tysonn committed Oct 18, 2012
Showing with 5,366 additions and 1,205 deletions.
  1. +4 −84 DevCenter/Java/HowTo/service-bus-queues.md
  2. +4 −78 DevCenter/Java/HowTo/service-bus-topics.md
  3. +0 −65 DevCenter/Mobile/Chunks/mobile-microsoft-account-auth-steps.md
  4. +37 −0 DevCenter/Mobile/HowTo/mobile-microsoft-account-auth-steps.md
  5. +7 −8 ...r/Mobile/{Chunks/mobile-facebook-auth-steps.md → HowTo/mobile-services-register-facebook-auth.md}
  6. +0 −24 DevCenter/Mobile/HowTo/mobile-services-register-for-facebook-auth.md
  7. +45 −3 ...bile-services-register-for-live-connect-auth.md → mobile-services-register-for-single-sign-in.md}
  8. +53 −0 DevCenter/Mobile/HowTo/mobile-services-register-google-auth.md
  9. +48 −0 DevCenter/Mobile/HowTo/mobile-services-register-ms-account-auth.md
  10. +54 −0 DevCenter/Mobile/HowTo/mobile-services-register-twitter-auth.md
  11. BIN DevCenter/Mobile/Media/mobile-live-connect-app-api-settings.png
  12. BIN DevCenter/Mobile/Media/mobile-portal-quickstart-ios.png
  13. BIN DevCenter/Mobile/Media/mobile-portal-quickstart.png
  14. BIN DevCenter/Mobile/Media/mobile-quickstart-completed-ios.png
  15. BIN DevCenter/Mobile/Media/mobile-quickstart-startup-ios.png
  16. BIN DevCenter/Mobile/Media/mobile-quickstart-steps-ios.png
  17. BIN DevCenter/Mobile/Media/mobile-quickstart-steps.png
  18. BIN DevCenter/Mobile/Media/mobile-receive-email.png
  19. BIN DevCenter/Mobile/Media/mobile-services-facebook-new-app-dialog.png
  20. BIN DevCenter/Mobile/Media/mobile-services-google-app-details.png
  21. BIN DevCenter/Mobile/Media/mobile-services-google-create-client.png
  22. BIN DevCenter/Mobile/Media/mobile-services-google-create-client2.png
  23. BIN DevCenter/Mobile/Media/mobile-services-google-create-client3.png
  24. BIN DevCenter/Mobile/Media/mobile-services-google-developers.png
  25. BIN DevCenter/Mobile/Media/mobile-services-live-connect-add-app.png
  26. BIN DevCenter/Mobile/Media/mobile-services-live-connect-app-details.png
  27. BIN DevCenter/Mobile/Media/mobile-services-twitter-app-details.png
  28. BIN DevCenter/Mobile/Media/mobile-services-twitter-developers.png
  29. BIN DevCenter/Mobile/Media/mobile-services-twitter-register-app1.png
  30. BIN DevCenter/Mobile/Media/mobile-services-twitter-register-app2.png
  31. BIN DevCenter/Mobile/Media/mobile-xcode-project.png
  32. +8 −6 DevCenter/Mobile/Tutorials/mobile-services-authorize-users-dotnet.md
  33. +109 −0 DevCenter/Mobile/Tutorials/mobile-services-authorize-users-ios.md
  34. +10 −4 DevCenter/Mobile/Tutorials/mobile-services-authorize-users-js.md
  35. +154 −0 DevCenter/Mobile/Tutorials/mobile-services-get-started-ios.md
  36. +12 −12 DevCenter/Mobile/Tutorials/mobile-services-get-started-with-data-dotnet.md
  37. +311 −0 DevCenter/Mobile/Tutorials/mobile-services-get-started-with-data-ios.md
  38. +12 −12 DevCenter/Mobile/Tutorials/mobile-services-get-started-with-data-js.md
  39. +8 −7 DevCenter/Mobile/Tutorials/mobile-services-get-started-with-push-dotnet.md
  40. +8 −7 DevCenter/Mobile/Tutorials/mobile-services-get-started-with-push-js.md
  41. +43 −95 DevCenter/Mobile/Tutorials/mobile-services-get-started-with-users-dotnet.md
  42. +173 −0 DevCenter/Mobile/Tutorials/mobile-services-get-started-with-users-ios.md
  43. +162 −0 DevCenter/Mobile/Tutorials/mobile-services-get-started-with-users-js.md
  44. +19 −10 DevCenter/Mobile/Tutorials/mobile-services-get-started.md
  45. +4 −3 DevCenter/Mobile/Tutorials/mobile-services-paging-data-dotnet.md
  46. +4 −3 DevCenter/Mobile/Tutorials/mobile-services-paging-data-js.md
  47. +2 −3 DevCenter/Mobile/Tutorials/mobile-services-push-notifications-to-app-users-dotnet.md
  48. +4 −3 DevCenter/Mobile/Tutorials/mobile-services-push-notifications-to-app-users-js.md
  49. +114 −0 DevCenter/Mobile/Tutorials/mobile-services-send-emails-from-scripts-with-sendgrid.md
  50. +3 −2 DevCenter/Mobile/Tutorials/mobile-services-single-sign-on-win8-dotnet.md
  51. +8 −7 DevCenter/Mobile/Tutorials/mobile-services-single-sign-on-win8-js.md
  52. +4 −3 DevCenter/Mobile/Tutorials/mobile-services-validate-and-modify-data-dotnet.md
  53. +4 −3 DevCenter/Mobile/Tutorials/mobile-services-validate-and-modify-data-js.md
  54. +6 −99 DevCenter/Node/HowTo/service-bus-queues.md
  55. +6 −97 DevCenter/Node/HowTo/service-bus-topics.md
  56. +2 −2 DevCenter/Node/Tutorials/create-and-deploy-a-website-Mac.md
  57. +1 −1 DevCenter/Node/Tutorials/web-site-with-storage.md
  58. +84 −0 DevCenter/PHP/CommonTasks/configure-php-website.md
  59. +9 −95 DevCenter/PHP/HowTo/service-bus-queues.md
  60. +9 −86 DevCenter/PHP/HowTo/service-bus-topics.md
  61. +6 −6 DevCenter/PHP/HowTo/sql-azure.md
  62. +4 −0 DevCenter/PHP/LandingPages/common-tasks.md
  63. BIN DevCenter/PHP/Media/app-settings.png
  64. BIN DevCenter/PHP/Media/configure.png
  65. BIN DevCenter/PHP/Media/handler-mappings.png
  66. BIN DevCenter/PHP/Media/save-button.png
  67. BIN DevCenter/PHP/Media/show-connection-string-2.png
  68. BIN DevCenter/PHP/Media/ws-storage-app.png
  69. +5 −97 DevCenter/Python/HowTo/service-bus-queues.md
  70. +5 −94 DevCenter/Python/HowTo/service-bus-topics.md
  71. +6 −4 DevCenter/Shared/Chunks/create-storage-account.md
  72. +69 −2 DevCenter/Shared/Chunks/howto-service-bus-queues.md
  73. +65 −2 DevCenter/Shared/Chunks/howto-service-bus-topics.md
  74. BIN DevCenter/Shared/Media/create_custom_sql_db-2.png
  75. BIN DevCenter/Shared/Media/quick-storage-2.png
  76. +5 −10 DevCenter/dotNET/CommonTasks/enable-ssl.md
  77. +556 −0 DevCenter/dotNET/HowTo/howto_net_compute_task.md
  78. +1 −87 DevCenter/dotNET/HowTo/service-bus-queues.md
  79. +1 −80 DevCenter/dotNET/HowTo/service-bus-topics.md
  80. BIN DevCenter/dotNET/Media/AccessKey.png
  81. BIN DevCenter/dotNET/Media/AvailableNamespaces.png
  82. BIN DevCenter/dotNET/Media/ClickCreate.png
  83. BIN DevCenter/dotNET/Media/CreateNameSpaceDialog.png
  84. BIN DevCenter/dotNET/Media/NamespaceList.png
  85. BIN DevCenter/dotNET/Media/ServiceBusCreateNew.png
  86. BIN DevCenter/dotNET/Media/WA_dotNetTSPClient.png
  87. BIN DevCenter/dotNET/Media/WA_dotNetTSPSolver.png
  88. BIN DevCenter/dotNET/Media/mtas-1.PNG
  89. BIN DevCenter/dotNET/Media/mtas-2.png
  90. BIN DevCenter/dotNET/Media/mtas-add-existing-item-to-controllers.png
  91. BIN DevCenter/dotNET/Media/mtas-add-existing-item-to-models.png
  92. BIN DevCenter/dotNET/Media/mtas-add-existing-item-to-views.png
  93. BIN DevCenter/dotNET/Media/mtas-add-new-role-project-dialog.PNG
  94. BIN DevCenter/dotNET/Media/mtas-aesp.PNG
  95. BIN DevCenter/dotNET/Media/mtas-alternative-architecture.png
  96. BIN DevCenter/dotNET/Media/mtas-architecture-overview.png
  97. BIN DevCenter/dotNET/Media/mtas-ase-add.PNG
  98. BIN DevCenter/dotNET/Media/mtas-ase-add2.PNG
  99. BIN DevCenter/dotNET/Media/mtas-ase-add3.PNG
  100. BIN DevCenter/dotNET/Media/mtas-ase1.PNG
  101. BIN DevCenter/dotNET/Media/mtas-c1.PNG
  102. BIN DevCenter/dotNET/Media/mtas-c2.PNG
  103. BIN DevCenter/dotNET/Media/mtas-c3.PNG
  104. BIN DevCenter/dotNET/Media/mtas-c4.PNG
  105. BIN DevCenter/dotNET/Media/mtas-c5.PNG
  106. BIN DevCenter/dotNET/Media/mtas-c6.PNG
  107. BIN DevCenter/dotNET/Media/mtas-c7.PNG
  108. BIN DevCenter/dotNET/Media/mtas-compute-emulator-icon.png
  109. BIN DevCenter/dotNET/Media/mtas-create-cloud.PNG
  110. BIN DevCenter/dotNET/Media/mtas-create-storage-url-test.PNG
  111. BIN DevCenter/dotNET/Media/mtas-create1.PNG
  112. BIN DevCenter/dotNET/Media/mtas-elip.PNG
  113. BIN DevCenter/dotNET/Media/mtas-enter.PNG
  114. BIN DevCenter/dotNET/Media/mtas-fe.png
  115. BIN DevCenter/dotNET/Media/mtas-file-new-project.png
  116. BIN DevCenter/dotNET/Media/mtas-footer-in-layout.PNG
  117. BIN DevCenter/dotNET/Media/mtas-guid-keys.PNG
  118. BIN DevCenter/dotNET/Media/mtas-home-page-before-adding-controllers.PNG
  119. BIN DevCenter/dotNET/Media/mtas-mailing-list-create-page.png
  120. BIN DevCenter/dotNET/Media/mtas-mailing-list-empty-index-page.png
  121. BIN DevCenter/dotNET/Media/mtas-mailing-list-index-page.png
  122. BIN DevCenter/dotNET/Media/mtas-mailinglist1.PNG
  123. BIN DevCenter/dotNET/Media/mtas-manage-access-keys-dialog.png
  124. BIN DevCenter/dotNET/Media/mtas-manage-keys-in-portal.png
  125. BIN DevCenter/dotNET/Media/mtas-manage-keys.PNG
  126. BIN DevCenter/dotNET/Media/mtas-menu-in-layout.PNG
  127. BIN DevCenter/dotNET/Media/mtas-message-create-page.png
  128. BIN DevCenter/dotNET/Media/mtas-message-empty-index-page.png
  129. BIN DevCenter/dotNET/Media/mtas-message-index-page.png
  130. BIN DevCenter/dotNET/Media/mtas-message-processing.png
  131. BIN DevCenter/dotNET/Media/mtas-mvcwebrole-properties-menu.PNG
  132. BIN DevCenter/dotNET/Media/mtas-mvcwebrole-settings-tab.png
  133. BIN DevCenter/dotNET/Media/mtas-new-cloud-project.PNG
  134. BIN DevCenter/dotNET/Media/mtas-new-cloud-service-add-worker-a.PNG
  135. BIN DevCenter/dotNET/Media/mtas-new-cloud-service-dialog-rename.PNG
  136. BIN DevCenter/dotNET/Media/mtas-new-cloud-service-dialog.PNG
  137. BIN DevCenter/dotNET/Media/mtas-new-cloud.PNG
  138. BIN DevCenter/dotNET/Media/mtas-new-mvc4-project.PNG
  139. BIN DevCenter/dotNET/Media/mtas-new-worker-role-project.PNG
  140. BIN DevCenter/dotNET/Media/mtas-opening-layout-cshtml.png
  141. BIN DevCenter/dotNET/Media/mtas-pack.PNG
  142. BIN DevCenter/dotNET/Media/mtas-portal-new-storage.PNG
  143. BIN DevCenter/dotNET/Media/mtas-rt-prop.png
  144. BIN DevCenter/dotNET/Media/mtas-se1.png
  145. BIN DevCenter/dotNET/Media/mtas-se2.PNG
  146. BIN DevCenter/dotNET/Media/mtas-se3.PNG
  147. BIN DevCenter/dotNET/Media/mtas-se4.png
  148. BIN DevCenter/dotNET/Media/mtas-serverExplorer.PNG
  149. BIN DevCenter/dotNET/Media/mtas-storage-acct-conn-string-dialog.png
  150. BIN DevCenter/dotNET/Media/mtas-storage-quick-SM.PNG
  151. BIN DevCenter/dotNET/Media/mtas-storage-quick.PNG
  152. BIN DevCenter/dotNET/Media/mtas-subscribe-confirmation-page.png
  153. BIN DevCenter/dotNET/Media/mtas-subscribe-diagram.png
  154. BIN DevCenter/dotNET/Media/mtas-subscribe-email.png
  155. BIN DevCenter/dotNET/Media/mtas-subscribers-create-page.png
  156. BIN DevCenter/dotNET/Media/mtas-subscribers-empty-index-page.png
  157. BIN DevCenter/dotNET/Media/mtas-subscribers-index-page.png
  158. BIN DevCenter/dotNET/Media/mtas-tableserviceentity.PNG
  159. BIN DevCenter/dotNET/Media/mtas-title-and-logo-in-layout.PNG
  160. BIN DevCenter/dotNET/Media/mtas-unsubscribe-confirmation-page.png
  161. BIN DevCenter/dotNET/Media/mtas-unsubscribe-query-page.png
  162. BIN DevCenter/dotNET/Media/mtas-wasVSdata.PNG
  163. BIN DevCenter/dotNET/Media/mtas-worker-b-add-existing.PNG
  164. BIN DevCenter/dotNET/Media/mtas-worker-b-add-reference-menu.png
  165. BIN DevCenter/dotNET/Media/mtas-worker-b-reference-manager.png
  166. BIN DevCenter/dotNET/Media/mtas-worker-roles-a-and-b.png
  167. BIN DevCenter/dotNET/Media/mtas-wpi-installer.png
  168. +676 −0 DevCenter/dotNET/Tutorials/multi-tier-with-storage-1-overview.md
  169. +444 −0 DevCenter/dotNET/Tutorials/multi-tier-with-storage-2-download-and-run.md
  170. +1,147 −0 DevCenter/dotNET/Tutorials/multi-tier-with-storage-3-web-role.md
  171. +526 −0 DevCenter/dotNET/Tutorials/multi-tier-with-storage-4-worker-role-a.md
  172. +304 −0 DevCenter/dotNET/Tutorials/multi-tier-with-storage-5-worker-role-b.md
  173. BIN ITPro/Shared/Media/WAMS_Dashboard2.PNG
  174. BIN ITPro/Shared/Media/WAMS_Monitor.png
  175. +1 −1 ITPro/Windows/LandingPages/other-resources.md
View
88 DevCenter/Java/HowTo/service-bus-queues.md
@@ -20,87 +20,7 @@ messages**, and **deleting queues**.
- [How to: Handle Application Crashes and Unreadable Messages][]
- [Next Steps][]
-## <a name="bkmk_WhatAreSvcBusQueues"> </a>What are Service Bus Queues?
-
-Service Bus Queues support a **brokered messaging communication** model.
-When using queues, components of a distributed application do not
-communicate directly with each other, they instead exchange messages via
-a queue, which acts as an intermediary. A message producer (sender)
-hands off a message to the queue and then continues its processing.
-Asynchronously, a message consumer (receiver) pulls the message from the
-queue and processes it. The producer does not have to wait for a reply
-from the consumer in order to continue to process and send further
-messages. Queues offer **First In, First Out (FIFO)** message delivery
-to one or more competing consumers. That is, messages are typically
-received and processed by the receivers in the order in which they were
-added to the queue, and each message is received and processed by only
-one message consumer.
-
-![Service Bus Queue Diagram][]
-
-Service Bus queues are a general-purpose technology that can be used for
-a wide variety of scenarios:
-
-- Communication between web and worker roles in a multi-tier Windows
- Azure application
-- Communication between on-premises apps and Windows Azure hosted apps
- in a hybrid solution
-- Communication between components of a distributed application
- running on-premises in different organizations or departments of an
- organization
-
-Using queues can enable you to scale out your applications better, and
-enable more resiliency to your architecture.
-
-## <a name="bkmk_CreateSvcNamespace"> </a>Create a Service Namespace
-
-To begin using Service Bus queues in Windows Azure, you must first
-create a service namespace. A service namespace provides a scoping
-container for addressing Service Bus resources within your application.
-
-To create a service namespace:
-
-1. Log on to the [Windows Azure Management Portal][].
-2. In the lower left navigation pane of the Management Portal, click
- **Service Bus, Access Control & Caching**.
-3. In the upper left pane of the Management Portal, click the **Service
- Bus** node, and then click the **New** button.
- ![Service Bus Node screenshot][]
-4. In the **Create a new Service Namespace** dialog, enter a
- **Namespace**, and then to make sure that it is unique, click the
- **Check Availability** button.
- ![Create a New Namespace screenshot][]
-5. After making sure the namespace name is available, choose the
- country or region in which your namespace should be hosted (make
- sure you use the same country/region in which you are deploying your
- compute resources), and then click the **Create Namespace** button.
- Having a compute instance is optional, and the service bus can be
- consumed from any application with internet access.
-
- The namespace you created will then appear in the Management Portal
- and takes a moment to activate. Wait until the status is **Active**
- before moving on.
-
-## <a name="bkmk_ObtainDefaultMngmntCredentials"> </a>Obtain the Default Management Credentials for the Namespace
-
-In order to perform management operations, such as creating a queue, on
-the new namespace, you need to obtain the management credentials for the
-namespace.
-
-1. In the left navigation pane, click the **Service Bus** node, to
- display the list of available namespaces:
- ![Available Namespaces screenshot][]
-2. Select the namespace you just created from the list shown:
- ![Namespace List screenshot][]
-3. The right-hand **Properties** pane will list the properties for the
- new namespace:
- ![Properties Pane screenshot][]
-4. The **Default Key** is hidden. Click the **View** button to display
- the security credentials:
- ![Default Key screenshot][]
-5. Make a note of the **Default Issuer** and the **Default Key** as you
- will use this information below to perform operations with the
- namespace.
+<div chunk="../../shared/chunks/howto-service-bus-queues.md" />
## <a name="bkmk_ConfigApp"> </a>Configure Your Application to Use Service Bus
@@ -320,9 +240,9 @@ Now that you've learned the basics of Service Bus queues, see the MSDN
topic [Queues, Topics, and Subscriptions][] for more information.
[Windows Azure SDK for Java]: http://msdn.microsoft.com/en-us/library/windowsazure/hh690953(v=vs.103).aspx
- [What are Service Bus Queues?]: #bkmk_WhatAreSvcBusQueues
- [Create a Service Namespace]: #bkmk_CreateSvcNamespace
- [Obtain the Default Management Credentials for the Namespace]: #bkmk_ObtainDefaultMngmntCredentials
+ [What are Service Bus Queues?]: #what-are-service-bus-queues
+ [Create a Service Namespace]: #create-a-service-namespace
+ [Obtain the Default Management Credentials for the Namespace]: #obtain-default-credentials
[Configure Your Application to Use Service Bus]: #bkmk_ConfigApp
[How to: Create a Security Token Provider]: #bkmk_HowToCreateQueue
[How to: Send Messages to a Queue]: #bkmk_HowToSendMsgs
View
82 DevCenter/Java/HowTo/service-bus-topics.md
@@ -22,81 +22,7 @@ messages to a topic**, **receiving messages from a subscription**, and
- [How to: Delete Topics and Subscriptions][]
- [Next Steps][]
-## <a name="bkmk_WhatAreSvcBusTopics"> </a>What are Service Bus Topics and Subscriptions?
-
-Service Bus topics and subscriptions support a **publish/subscribe
-messaging communication** model. When using topics and subscriptions,
-components of a distributed application do not communicate directly with
-each other, they instead exchange messages via a topic, which acts as an
-intermediary.
-![Service Bus Topics diagram][]
-
-In contrast to Service Bus queues, where each message is processed by a
-single consumer, topics and subscriptions provide a **one-to-many** form
-of communication, using a publish/subscribe pattern. It is possible to
-register multiple subscriptions to a topic. When a message is sent to a
-topic, it is then made available to each subscription to handle/process
-independently.
-
-A topic subscription resembles a virtual queue that receives copies of
-the messages that were sent to the topic. You can optionally register
-filter rules for a topic on a per-subscription basis, which allows you
-to filter/restrict which messages to a topic are received by which topic
-subscriptions.
-
-Service Bus topics and subscriptions enable you to scale to process a
-very large number of messages across a very large number of users and
-applications.
-
-## <a name="bkmk_CreateSvcNamespace"> </a>Create a Service Namespace
-
-To begin using Service Bus topics in Windows Azure, you must first
-create a service namespace. A service namespace provides a scoping
-container for addressing Service Bus resources within your application.
-
-**To create a service namespace:**
-
-1. Log on to the [Windows Azure Management Portal][].
-2. In the lower left navigation pane of the Management Portal, click
- **Service Bus, Access Control & Caching**.
-3. In the upper left pane of the Management Portal, click the **Service
- Bus** node, and then click the **New** button.
- ![Service Bus Node screenshot][]
-4. In the **Create a new Service Namespace** dialog, enter a
- **Namespace**, and then to make sure that it is unique, click the
- **Check Availability** button.
- ![Create a New Namespace ][]
-5. After making sure the namespace name is available, choose the
- country or region in which your namespace should be hosted (make
- sure you use the same country/region in which you are deploying your
- compute resources), and then click the **Create Namespace** button.
- Having a compute instance is optional, and the service bus can be
- consumed from any application with internet access.
-
- The namespace you created will then appear in the Management Portal
- and takes a moment to activate. Wait until the status is **Active**
- before moving on.
-
-## <a name="bkmk_ObtainDefaultMngmntCredentials"> </a>Obtain the Default Management Credentials for the Namespace
-
-In order to perform management operations, such as creating a topic, on
-the new namespace, you need to obtain the management credentials for the
-namespace.
-
-1. In the left navigation pane, click the **Service Bus** node, to
- display the list of available namespaces:
- ![Available Namespaces ][Service Bus Node screenshot]
-2. Select the namespace you just created from the list shown:
- ![Namespace List screenshot][]
-3. The right-hand **Properties** pane will list the properties for the
- new namespace:
- ![Properties Pane screenshot][]
-4. The **Default Key** is hidden. Click the **View** button to display
- the security credentials:
- ![Default Key screenshot][]
-5. Make a note of the **Default Issuer** and the **Default Key** as you
- will use this information below to perform operations with the
- namespace.
+<div chunk="../../shared/chunks/howto-service-bus-topics.md" />
## <a name="bkmk_ConfigYourApp"> </a>Configure Your Application to Use Service Bus
@@ -409,9 +335,9 @@ Now that you've learned the basics of Service Bus queues, see the MSDN
topic [Queues, Topics, and Subscriptions][] for more information.
[Windows Azure SDK for Java]: http://msdn.microsoft.com/en-us/library/windowsazure/hh690953(v=vs.103).aspx
- [What are Service Bus Topics and Subscriptions?]: #bkmk_WhatAreSvcBusTopics
- [Create a Service Namespace]: #bkmk_CreateSvcNamespace
- [Obtain the Default Management Credentials for the Namespace]: #bkmk_ObtainDefaultMngmntCredentials
+ [What are Service Bus Topics and Subscriptions?]: #what-are-service-bus-topics
+ [Create a Service Namespace]: #create-a-service-namespace
+ [Obtain the Default Management Credentials for the Namespace]: #obtain-default-credentials
[Configure Your Application to Use Service Bus]: #bkmk_ConfigYourApp
[How to: Create a Topic]: #bkmk_HowToCreateTopic
[How to: Create Subscriptions]: #bkmk_HowToCreateSubscrip
View
65 DevCenter/Mobile/Chunks/mobile-microsoft-account-auth-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
37 DevCenter/Mobile/HowTo/mobile-microsoft-account-auth-steps.md
@@ -0,0 +1,37 @@
+<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
15 ...bile/Chunks/mobile-facebook-auth-steps.md → ...mobile-services-register-facebook-auth.md
@@ -4,13 +4,13 @@
# Register your apps for Facebook authentication with Mobile Services
-This topic shows you how to register your apps to be able to use Facebook as an authentication provider Windows Azure Mobile Services.
+This topic shows you how to register your apps to be able to use Facebook to authenticate with Windows Azure Mobile Services.
<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 facebook.com.</p>
+<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 [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**.
@@ -20,8 +20,6 @@ This topic shows you how to register your apps to be able to use Facebook as an
![][1]
- This displays the
-
4. Choose a unique name for your app, select **OK**.
![][2]
@@ -32,15 +30,15 @@ This topic shows you how to register your apps to be able to use Facebook as an
![][3]
-6. Make a note of the value of **App ID** and **App Secret**.
+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.
+You are now ready to use a Facebook login for authentication in your app by providing the App ID and App Secret values to Mobile Services.
<!-- Anchors. -->
@@ -52,7 +50,8 @@ You are now ready to integrate authentication by using Facebook into your app by
[4]: ../Media/mobile-services-facebook-completed.png
<!-- URLs. -->
-[Facebook Developers]: http://developer.facebook.com
+[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
24 DevCenter/Mobile/HowTo/mobile-services-register-for-facebook-auth.md
@@ -1,24 +0,0 @@
-<properties linkid="register-for-facebook-auth" urldisplayname="Mobile Services" headerexpose="" pagetitle="Register your apps for Facebook authentication with Mobile Services" metakeywords="Facebook, mobile devices, Windows Azure, mobile, authentication" footerexpose="" metadescription="Windows Developer Preview registration steps for Mobile Services 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="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 Facebook authentication with Mobile Services
-
-This topic shows you how to register your apps to be able to use Facebook as an authentication provider Windows Azure Mobile Services.
-
-<!-- Stick the reference to chunk here -->
-
-<!-- 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 Developers]: http://developer.facebook.com
-[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
48 ...ervices-register-for-live-connect-auth.md → ...e-services-register-for-single-sign-in.md
@@ -2,11 +2,53 @@
<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 Windows Live Connect authentication with Mobile Services
+# Register your Windows Store apps to use Windows Live Connect single sign-on
-This topic shows you how to register your apps to be able to use Live Connect as an authentication provider for Windows Azure Mobile Services.
+This topic shows you how to register your Windows Store apps to be able to use Live Connect for single sign-on as the identity provider for Windows Azure Mobile Services. This step is also required to use push notifications.
-<!-- Stick the reference to chunk here -->
+<div class="dev-callout"><b>Note</b>
+<p>when your Windows Store app does not require single sign-on or push notifications, consider also registering your app with the Windows Store. For more information, see <a href="/en-us/develop/mobile/howto/register-ms-account-auth">Register your Windows Store apps to use a Microsoft Account login</a>.</p>
+</div>
+
+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**.
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:
View
53 DevCenter/Mobile/HowTo/mobile-services-register-google-auth.md
@@ -0,0 +1,53 @@
+<properties linkid="register-google-auth" urldisplayname="Mobile Services" headerexpose="" pagetitle="Register your apps for Google login with Mobile Services" metakeywords="Google, mobile devices, Windows Azure, mobile, authentication" footerexpose="" metadescription="Windows Developer Preview registration steps for Mobile Services 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="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 Google login with Mobile Services
+
+This topic shows you how to register your apps to be able to use Google to authenticate with Windows Azure Mobile Services.
+
+<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 <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]
+
+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**, 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]
+
+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 use a Google login for authentication in your app by providing the client ID and client 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
48 DevCenter/Mobile/HowTo/mobile-services-register-ms-account-auth.md
@@ -0,0 +1,48 @@
+<properties linkid="register-ms-account-auth" urldisplayname="Mobile Services" headerexpose="" pagetitle="Register your apps for Microsoft Live Connect authentication with Mobile Services" metakeywords="Microsoft Account, mobile devices, Windows Azure, mobile, authentication" footerexpose="" metadescription="Windows Live Connect registration steps for Mobile Services 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="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 Windows Store apps to use a Microsoft Account login
+
+This topic shows you how to register your apps to be able to use Live Connect as an authentication provider for Windows Azure Mobile Services.
+
+<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 <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**.
+
+ ![][1]
+
+ This registers the application with Live Connect.
+
+10. Click **Application settings page**, then **API Settings** and make a note of the values of the **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>
+
+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-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
+[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
54 DevCenter/Mobile/HowTo/mobile-services-register-twitter-auth.md
@@ -0,0 +1,54 @@
+<properties linkid="register-twitter-auth" urldisplayname="Mobile Services" headerexpose="" pagetitle="Register your apps for Twitter login with Mobile Services" metakeywords="Twitter, mobile devices, Windows Azure, mobile, authentication" footerexpose="" metadescription="Windows Developer Preview registration steps for Mobile Services 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="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
+
+This topic shows you how to register your apps to be able to use Twitter to authenticate with Windows Azure Mobile Services.
+
+<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 <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** values for your app, and type the URL of the mobile service in **Callback URL**.
+
+ ![][2]
+
+ <div class="dev-callout"><b>Note</b>
+ <p>The **Website** value is required but is not used.</p>
+ </div>
+
+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 use a Twitter login for authentication in 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/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-portal-quickstart-ios.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-portal-quickstart.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-quickstart-completed-ios.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-quickstart-startup-ios.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-quickstart-steps-ios.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-quickstart-steps.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-receive-email.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-facebook-new-app-dialog.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-app-details.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-client.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-client2.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
BIN DevCenter/Mobile/Media/mobile-services-google-developers.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-live-connect-add-app.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-live-connect-app-details.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-twitter-app-details.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-twitter-developers.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-twitter-register-app1.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-twitter-register-app2.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-xcode-project.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
14 DevCenter/Mobile/Tutorials/mobile-services-authorize-users-dotnet.md
@@ -2,17 +2,19 @@
<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">
+ <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>
+</div>
<div class="dev-center-os-selector">
<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>
--->
-
-# Use scripts to authorize users in Mobile Services
+</div>-->
-Language: **C# and XAML**
+# Use scripts to authorize users in Mobile Services for Windows Store
+<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
109 DevCenter/Mobile/Tutorials/mobile-services-authorize-users-ios.md
@@ -0,0 +1,109 @@
+<properties linkid="mobile-services-authorize-users-dotnet" urldisplayname="Mobile Services" headerexpose="" pagetitle="Authorize users with Mobile Services" metakeywords="Authorize users with Mobile Services, mobile devices, Windows Azure, mobile, Windows 8, WinRT app, authorization" footerexpose="" metadescription="Authorize users with 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="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">
+ <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>
+</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._
+
+This topic shows you how to use server scripts to authorize authenticated users for accessing data in Windows Azure Mobile Services from an iOS 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.
+
+This tutorial is based on the Mobile Services quickstart and builds on the previous tutorial [Get started with authentication]. Before you start this tutorial, you must first complete [Get started with authentication].
+
+## <a name="register-scripts"></a>Register scripts
+Because the quickstart app reads and inserts data, you need to register scripts for these operations against the TodoItem table.
+
+1. Log on to the [Windows Azure Management Portal], click **Mobile Services**, and then click your app.
+
+ ![][0]
+
+2. Click the **Data** tab, then click the **TodoItem** table.
+
+ ![][1]
+
+3. Click **Script**, then select the **Insert** operation.
+
+ ![][2]
+
+4. Replace the existing script with the following function, and then click **Save**.
+
+ function insert(item, user, request) {
+ item.userId = user.userId;
+ request.execute();
+ }
+
+ This script adds a userId value to the item, which is the user ID of the authenticated user, before it is inserted into the TodoItem table.
+
+ <div class="dev-callout"><b>Note</b>
+ <p>Dynamic schema must be enabled the first time that this insert script runs. With dynamic schema enabled, Mobile Services automatically adds the <strong>userId</strong> column to the <strong>TodoItem</strong> table on the first execution. Dynamic schema is enabled by default for a new mobile service, and it should be disabled before the app is published to the Windows Store.</p>
+ </div>
+
+
+5. Repeat steps 3 and 4 to replace the existing **Read** operation with the following function:
+
+ function read(query, user, request) {
+ query.where({ userId: user.userId });
+ request.execute();
+ }
+
+ This script filters the returned TodoItem objects so that each user only receives the items that they inserted.
+
+## Test the app
+
+1. In Xcode, open the project that you modified when you completed the tutorial [Get started with authentication].
+
+2. Press the **Run** button to build the project, start the app in the iPhone emulator, then log-on with your chosen identity provider.
+
+ Notice that this time, although there are items already in the TodoItem table from preview tutorials, no items are returned. This happens because previous items were inserted without the userId column and now have null values.
+
+3. In the app, enter text in **Insert a TodoItem** and then click **Save**.
+
+ ![][3]
+
+ This inserts both the text and the userId in the TodoItem table in the mobile service. Because the new item has the correct userId value, it is returned by the mobile service and displayed in the second column.
+
+5. Back in the **todoitem** table in the [Management Portal][Windows Azure Management Portal], click **Browse** and verify that each newly added item how has an associated userId value.
+
+6. (Optional) If you have additional login accounts, you can verify that users can only see their own data by closing the app and then running it again. When the login credentials dialog is displayed, enter a different login, and then verify that the items entered under the previous account are not displayed.
+
+## Next steps
+
+This concludes the tutorials that demonstrate the basics of working with authentication. Consider finding out more about the following Mobile Services topics:
+
+* [Get started with data]
+ <br/>Learn more about storing and querying data using Mobile Services.
+
+<!--* [Get started with push notifications]
+ <br/>Learn how to send a very basic push notification to your app.
+-->
+
+* [Mobile Services server script reference]
+ <br/>Learn more about registering and using server scripts.
+
+<!-- Anchors. -->
+[Register server scripts]: #register-scripts
+[Next Steps]:#next-steps
+
+<!-- Images. -->
+[0]: ../Media/mobile-services-selection.png
+[1]: ../Media/mobile-portal-data-tables.png
+[2]: ../Media/mobile-insert-script-users.png
+[3]: ../Media/mobile-quickstart-startup-ios.png
+
+<!-- URLs. -->
+[GitHub]: http://go.microsoft.com/fwlink/p/?LinkId=268784
+[Windows Push Notifications & Live Connect]: http://go.microsoft.com/fwlink/p/?LinkID=257677
+[Mobile Services server script reference]: http://go.microsoft.com/fwlink/p/?LinkId=262293
+[My Apps dashboard]: http://go.microsoft.com/fwlink/p/?LinkId=262039
+[Get started with Mobile Services]: /en-us/develop/mobile/tutorials/get-started/#create-new-service
+[Get started with data]: ./mobile-services-get-started-with-data-ios.md
+[Get started with authentication]: ./mobile-services-get-started-with-users-ios.md
+[Get started with push notifications]: ./mobile-services-get-started-with-push-ios.md
+[WindowsAzure.com]: http://www.windowsazure.com/
+[Windows Azure Management Portal]: https://manage.windowsazure.com/
View
14 DevCenter/Mobile/Tutorials/mobile-services-authorize-users-js.md
@@ -2,13 +2,19 @@
<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">
+ <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>
+</div>
<div class="dev-center-os-selector">
<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
+# 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.
@@ -56,7 +62,7 @@ Because the quickstart app reads and inserts data, you need to register scripts
1. In Visual Studio 2012 Express for Windows 8, open the project that you modified when you completed the tutorial [Get started with authentication].
-2. Press the F5 key to run the app and sign into Live Connect with your Microsoft Account.
+2. Press the F5 key to run the app, then log-on with your chosen identity provider.
Notice that this time, although there are items already in the TodoItem table from preview tutorials, no items are returned. This happens because previous items were inserted without the userId column and now have null values.
@@ -68,7 +74,7 @@ Because the quickstart app reads and inserts data, you need to register scripts
5. Back in the **todoitem** table in the [Management Portal][Windows Azure Management Portal], click **Browse** and verify that each newly added item how has an associated userId value.
-6. (Optional) If you have an additional Microsoft Account, you can verify that users can only see their own data by closing the app (Alt+F4) and then running it again. When the login credentials dialog is displayed, enter a different Microsoft account, and then verify that the items entered under the previous account are not displayed.
+6. (Optional) If you have additional login accounts, you can verify that users can only see their own data by closing the app (Alt+F4) and then running it again. When the login credentials dialog is displayed, enter a different login, and then verify that the items entered under the previous account are not displayed.
## Next steps
View
154 DevCenter/Mobile/Tutorials/mobile-services-get-started-ios.md
@@ -0,0 +1,154 @@
+<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">
+ <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>-->
+
+# <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.
+
+A screenshot from the completed app is below:
+
+![][0]
+
+Completing this tutorial requires XCode 4.5 and iOS 5.0 or later versions.
+
+<div class="dev-callout"><strong>Note</strong> <p>To complete this tutorial, you need a Windows Azure account that has the Windows Azure Mobile Services feature enabled.</p> <ul> <li>If you don't have an account, you can create a free trial account in just a couple of minutes. For details, see <a href="http://www.windowsazure.com/en-us/pricing/free-trial/?WT.mc_id=A0E0E5C02" target="_blank">Windows Azure Free Trial</a>.</li> <li>If you have an existing account but need to enable the Windows Azure Mobile Services preview, see <a href="../create-a-windows-azure-account/#enable" target="_blank">Enable Windows Azure preview features</a>.</li> </ul> </div>
+
+## <a name="create-new-service"> </a>Create a new mobile service
+Follow these steps to create a new mobile service.
+
+1. Log into the [Management Portal].
+2. At the bottom of the navigation pane, click **+NEW**.
+
+ ![][1]
+
+3. Expand **Mobile Service**, then click **Create**.
+
+ ![][2]
+
+ This displays the **New Mobile Service** dialog.
+
+4. In the **Create a mobile service** page, type a subdomain name for the new mobile service in the **URL** textbox and wait for name verification. Once name verification completes, click the right arrow button to go to the next page.
+
+ ![][3]
+
+ This displays the **Specify database settings** page.
+
+ <div class="dev-callout">
+ <b>Note</b>
+ <p>As part of this tutorial, you create a new SQL Database instance and server. You can reuse this new database and administer it as you would any other SQL Database instance. If you already have a database in the same region as the new mobile service, you can instead choose <strong>Use existing Database</strong> and then select that database. The use of a database in a different region is not recommended because of additional bandwidth costs and higher latencies.</p></div>
+
+6. In **Name**, type the name of the new database, then type **Login name**, which is the administrator login name for the new SQL Database server, type and confirm the password, and click the check button to complete the process.
+
+ ![][4]
+
+ <div class="dev-callout">
+ <b>Note</b>
+ <p>When the password that you supply does not meet the minimum requirements or when there is a mismatch, a warning is displayed. <br/>We recommend that you make a note of the administrator login name and password that you specify; you will need this information to reuse the SQL Database instance or the server in the future.</p>
+ </div>
+
+You have now created a new mobile service that can be used by your mobile apps.
+
+## <h2><span class="short-header">Create a new app</span>Create a new iOS app</h2>
+
+Once you have created your mobile service, you can follow an easy quickstart in the Management Portal to either create a new app or modify an existing app to connect to your mobile service.
+
+In this section you will create a new iOS app that is connected to your mobile service.
+
+1. In the Management Portal, click **Mobile Services**, and then click the mobile service that you just created.
+
+2. In the quickstart tab, click **iOS** under **Choose platform** and expand **Create a new iOS app**.
+
+ ![][6]
+
+ This displays the three easy steps to create an iOS app connected to your mobile service.
+
+ ![][7]
+
+3. If you haven't already done so, download and install [Xcode] and the [Mobile Services iOS SDK] on your local computer or virtual machine.
+
+4. Click **Create TodoItems table** to create a table to store app data.
+
+5. Under **Download and run app**, click **Download**.
+
+ This downloads the project for the sample _To do list_ application that is connected to your mobile service. Save the compressed project file to your local computer, and make a note of where you save it.
+
+## Run your iOS app
+
+The final stage of this tutorial is to build and run your new app.
+
+1. Browse to the location where you saved the compressed project files, expand the files on your computer, and open the project file using Xcode.
+
+ ![][8]
+
+2. Press the **Run** button to build the project and start the app in the iPhone emulator, which is the default for this project.
+
+3. In the app, type meaningful text, such as _Complete the tutorial_ and then click the plus (**+**) icon.
+
+ ![][10]
+
+ This sends a POST request to the new mobile service hosted in Windows Azure. Data from the request is inserted into the TodoItem table. Items stored in the table are returned by the mobile service, and the data is displayed in the list.
+
+ <div class="dev-callout">
+ <b>Note</b>
+ <p>You can review the code that accesses your mobile service to query and insert data, which is found in the TodoService.m file.</p>
+ </div>
+
+4. Back in the Management Portal, click the **Data** tab and then click the **TodoItems** table.
+
+ ![][11]
+
+ This lets you browse the data inserted by the app into the table.
+
+ ![][12]
+
+## <a name="next-steps"> </a>Next Steps
+Now that you have completed the quickstart, learn how to perform additional important tasks in Mobile Services:
+
+* [Get started with data]
+ <br/>Learn more about storing and querying data using Mobile Services.
+
+* [Get started with authentication]
+ <br/>Learn how to authenticate users of your app with an identity provider.
+
+<!--
+* [Get started with push notifications]
+ <br/>Learn how to send a very basic push notification to your app.
+-->
+
+<!-- Anchors. -->
+[Getting started with Mobile Services]:#getting-started
+[Create a new mobile service]:#create-new-service
+[Define the mobile service instance]:#define-mobile-service-instance
+[Next Steps]:#next-steps
+
+<!-- Images. -->
+[0]: ../Media/mobile-quickstart-completed-ios.png
+[1]: ../../Shared/Media/plus-new.png
+[2]: ../Media/mobile-create.png
+[3]: ../Media/mobile-create-page1.png
+[4]: ../Media/mobile-create-page2.png
+[5]: ../Media/mobile-services-selection.png
+[6]: ../Media/mobile-portal-quickstart-ios.png
+[7]: ../Media/mobile-quickstart-steps-ios.png
+[8]: ../Media/mobile-xcode-project.png
+[9]: ../Media/mobile-quickstart-download-app.png
+[10]: ../Media/mobile-quickstart-startup-ios.png
+[11]: ../Media/mobile-data-tab.png
+[12]: ../Media/mobile-data-browse.png
+[13]: ../Media/mobile-services-diagram.png
+
+<!-- URLs. -->
+[Get started with data]: ./mobile-services-get-started-with-data-ios.md
+[Get started with authentication]: ./mobile-services-get-started-with-users-ios.md
+[Get started with push notifications]: ./mobile-services-get-started-with-push-ios.md
+[Xcode]: https://go.microsoft.com/fwLink/p/?LinkID=266532
+[Mobile Services iOS SDK]: https://go.microsoft.com/fwLink/p/?LinkID=266533
+[WindowsAzure.com]: http://www.windowsazure.com/
+[Management Portal]: https://manage.windowsazure.com/
View
24 DevCenter/Mobile/Tutorials/mobile-services-get-started-with-data-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-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
+# 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.
@@ -26,7 +26,7 @@ This tutorial walks you through these basic steps:
This tutorial requires the [Mobile Services SDK].
-## <a name="download-app"></a>Download the project
+<h2><a name="download-app"></a><span class="short-header">Download the project</span>Download the GetStartedWithData project</h2>
This tutorial is built on the [GetStartedWithData app][Developer Code Samples site], which is a Windows Store app. The UI for this app is identical to the app generated by the Mobile Services quickstart, except that added items are stored locally in memory.
@@ -46,7 +46,7 @@ This tutorial is built on the [GetStartedWithData app][Developer Code Samples si
Notice that the saved text is displayed in the second column under **Query and update data**.
-## <a name="create-service"></a>Create mobile service
+<h2><a name="create-service"></a><span class="short-header">Create mobile service</span>Create a new mobile service in the Management Portal</h2>
Next, you will create a new mobile service to replace the in-memory list for data storage. Follow these steps to create a new mobile service.
@@ -83,7 +83,7 @@ Next, you will create a new mobile service to replace the in-memory list for dat
You have now created a new mobile service that can be used by your mobile apps. Next, you will add a new table in which to store app data. This table will be used by the app in place of the in-memory collection.
-## <a name="add-table"></a>Add a new table
+<h2><a name="add-table"></a><span class="short-header">Add a new table</span>Add a new table to the mobile service</h2>
To be able to store app data in the new mobile service, you must first create a new table in the associated SQL Database instance.
@@ -118,7 +118,7 @@ To be able to store app data in the new mobile service, you must first create a
You are now ready to use the new mobile service as data storage for the app.
-## <a name="update-app"></a>Update the app
+<h2><a name="update-app"></a><span class="short-header">Update the app</span>Update the app to use the mobile service for data access</h2>
Now that your mobile service is ready, you can update the app to store items in Mobile Services instead of the local collection.
@@ -174,7 +174,7 @@ Now that your mobile service is ready, you can update the app to store items in
Now that the app has been updated to use Mobile Services for backend storage, it's time to test the app against Mobile Services.
-## <a name="test-app"></a>Test the app
+<h2><a name="test-app"></a><span class="short-header">Test the app</span>Test the app against your new mobile service</h2>
1. In Visual Studio, press the F5 key to run the app.
@@ -225,7 +225,7 @@ This tutorial demonstrated the basics of enabling a Windows Store app to work wi
Once you have completed the data series, try one of these other tutorials:
* [Get started with authentication]
- <br/>Learn how to authenticate users of your app with Windows Account.
+ <br/>Learn how to authenticate users of your app.
* [Get started with push notifications]
<br/>Learn how to send a very basic push notification to your app.
View
311 DevCenter/Mobile/Tutorials/mobile-services-get-started-with-data-ios.md
@@ -0,0 +1,311 @@
+<properties linkid="mobile-services-get-started-with-data-ios" urldisplayname="Mobile Services" headerexpose="" pagetitle="Get started with data in Windows Azure Mobile Services" metakeywords="access and change data, Windows Azure Mobile Services, mobile devices, Windows Azure, mobile, iPhone, iPad, iOS app" footerexpose="" metadescription="More in-depth review of how to access and change in your iOS-based app using Windows Azure Mobile Services." umbraconavihide="0" disquscomments="1"></properties>
+
+<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">Windows Store app</a>
+ <a href="/en-us/develop/mobile/tutorials/get-started-with-data-ios/" title="iOS version" class="current">iOS app</a>
+</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._
+
+This topic shows you how to use Windows Azure Mobile Services to leverage data in an iOS 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.
+
+<div class="dev-callout"><b>Note</b>
+<p>This tutorial is intended to help you better understand how Mobile Services enables you to use Windows Azure to store and retrieve data from an iOS app. As such, this topic walks you through many of the steps that are completed for you in the Mobile Services quickstart. If this is your first experience with Mobile Services, consider first completing the tutorial <a href="/en-us/develop/mobile/tutorials/get-started-ios">Get started with Mobile Services</a>.</p>
+</div>
+
+This tutorial walks you through these basic steps:
+
+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 4.5][Install Xcode] and iOS 5.0 or later versions.
+
+<h2><a name="download-app"></a><span class="short-header">Download the project</span>Download the GetStartedWithData project</h2>
+
+This tutorial is built on the [GetStartedWithData app][GitHub], which is an iOS app. The UI for this app is identical to the app generated by the Mobile Services iOS quickstart, except that added items are stored locally in memory.
+
+1. Download the GetStartedWithData sample app from [GitHub].
+
+2. In Xcode, open the downloaded project and examine the TodoService.m file.
+
+ 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.
+
+4. In the app, type some text in the text box, then click the **+** button.
+
+ ![][0]
+
+ Notice that the saved text is displayed in the list below.
+
+<h2><a name="create-service"></a><span class="short-header">Create mobile service</span>Create a new mobile service in the Management Portal</h2>
+
+Next, you will create a new mobile service to replace the in-memory list for data storage. Follow these steps to create a new mobile service.
+
+1. Log into the [Windows Azure Management Portal].
+2. At the bottom of the navigation pane, click **+NEW**.
+
+ ![][1]
+
+3. Expand **Compute** and **Mobile Service**, then click **Create**.
+
+ ![][2]
+
+ This displays the **New Mobile Service** dialog.
+
+4. In the **Create a mobile service** page, type a subdomain name for the new mobile service in the **URL** textbox and wait for name verification. Once name verification completes, click the right arrow button to go to the next page.
+
+ ![][3]
+
+ This displays the **Specify database settings** page.
+
+ <div class="dev-callout">
+ <b>Note</b>
+ <p>As part of this tutorial, you create a new SQL Database instance and server. You can reuse this new database and administer it as you would any other SQL Database instance. If you already have a database in the same region as the new mobile service, you can instead choose <b>Use existing Database</b> and then select that database. The use of a database in a different region is not recommended because of additional bandwidth costs and higher latencies.</p></div>
+
+5. In **Name**, type the name of the new database, then type **Login name**, which is the administrator login name for the new SQL Database server, type and confirm the password, and click the check button to complete the process.
+
+ ![][4]
+
+ <div class="dev-callout">
+ <b>Note</b>
+ <p>When the password that you supply does not meet the minimum requirements or when there is a mismatch, a warning is displayed. <br/>We recommend that you make a note of the administrator login name and password that you specify; you will need this information to reuse the SQL Database instance or the server in the future.</p>
+ </div>
+
+
+You have now created a new mobile service that can be used by your mobile apps. Next, you will add a new table in which to store app data. This table will be used by the app in place of the in-memory collection.
+
+<h2><a name="add-table"></a><span class="short-header">Add a new table</span>Add a new table to the mobile service</h2>
+
+To be able to store app data in the new mobile service, you must first create a new table in the associated SQL Database instance.
+
+1. In the Management Portal, click **Mobile Services**, and then click the mobile service that you just created.
+
+2. Click the **Data** tab, then click **+Create**.
+
+ ![][5]
+
+ This displays the **Create new table** dialog.
+
+3. In **Table name** type _TodoItem_, then click the check button.
+
+ ![][6]
+
+ This creates a new storage table **TodoItem** with the default permissions set, which means that any user of the app can access and change data in the table.
+
+ <div class="dev-callout">
+ <b>Note</b>
+ <p>The same table name is used in Mobile Services quickstart. However, each table is created in a schema that is specific to a given mobile service. This is to prevent data collisions when multiple mobile services use the same database.</p>
+ </div>
+
+4. Click the new **TodoItem** table and verify that there are no data rows.
+
+5. Click the **Columns** tab and verify that there is only a single **id** column, which is automatically created for you.
+
+ This is the minimum requirement for a table in Mobile Services.
+
+ <div class="dev-callout"><b>Note</b>
+ <p>When dynamic schema is enabled on your mobile service, new columns are created automatically when JSON objects are sent to the mobile service by an insert or update operation.</p>
+ </div>
+
+You are now ready to use the new mobile service as data storage for the app.
+
+<h2><a name="update-app"></a><span class="short-header">Update the app</span>Update the app to use the mobile service for data access</h2>
+
+Now that your mobile service is ready, you can update the app to store items in Mobile Services instead of the local collection.
+
+1. If you haven't already installed the [Mobile Services iOS SDK], install it now.
+
+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>
+
+3. In the ToDoService.h file, locate the following commented line of code:
+
+ // Create an MSClient property comment in the #interface declaration for the TodoService.
+
+ After this comment, add the following line of code:
+
+ @property (nonatomic, strong) MSClient *client;
+
+ This creates a property that represents the MSClient that connects to the service
+
+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 inside the @interface declaration:
+
+ @property (nonatomic, strong) MSTable *table;
+
+ This creates a property representation for your mobile services table.
+
+5. In the Management Portal, click **Mobile Services**, and then click the mobile service you just created.
+
+6. Click the **Dashboard** tab and make a note of the **Site URL**, then click **Manage keys** and make a note of the **Application key**.
+
+ ![][8]
+
+ You will need these values when accessing the mobile service from your app code.
+
+7. Back in Xcode, open TodoService.m and locate the following commented line of code:
+
+ // Initialize the Mobile Service client with your URL and key.
+
+ 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.
+
+8. 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.
+
+9. 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:
+
+ self.table = [self.client getTable:@"TodoItem"];
+
+ This creates the TodoItem table instance.
+
+10. 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:
+
+ NSPredicate * predicate = [NSPredicate predicateWithFormat:@"complete == NO"];
+
+ This creates a query to return all tasks that have not yet been completed.
+
+11. Locate the following commented line of code:
+
+ // Query the TodoItem table and update the items property with the results from the service.
+
+ 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)
+ {
+ self.items = [results mutableCopy];
+ completion();
+ }];
+
+12. Locate the **addItem** method, and replace the body of the method with the following code:
+
+ // Insert the item into the TodoItem table and add to the items array on completion
+ [self.table insert:item completion:^(NSDictionary *result, NSError *error) {
+ NSUInteger index = [items count];
+ [(NSMutableArray *)items insertObject:item atIndex:index];
+
+ // Let the caller know that we finished
+ completion(index);
+ }];
+
+ This code sends an insert request to the mobile service.
+
+13. Locate the **completeItem** method, and replace the body of the method with the following code:
+
+ // Update the item in the TodoItem table and remove from the items array on completion
+ [self.table update:mutable completion:^(NSDictionary *item, NSError *error) {
+
+ // TODO
+ // Get a fresh index in case the list has changed
+ NSUInteger index = [items indexOfObjectIdenticalTo:mutable];
+
+ [mutableItems removeObjectAtIndex:index];
+
+ // Let the caller know that we have finished
+ completion(index);
+ }];
+
+ This code removes TodoItems after they are marked as completed.
+
+Now that the app has been updated to use Mobile Services for backend storage, it's time to test the app against Mobile Services.
+
+<h2><a name="test-app"></a><span class="short-header">Test the app</span>Test the app against your new mobile service</h2>
+
+1. In Xcode, select an emulator to deploy to (either iPhone or iPad), press the **Run** button (or the Command+R key) to rebuild the project and start the app.
+
+ This executes your Windows Azure Mobile Services client, built with the iOS SDK, that queries items from your mobile service.
+
+2. As before, type text in the textbox, and then click the **+** button..
+
+ This sends a new item as an insert to the mobile service.
+
+3. In the [Management Portal], click **Mobile Services**, and then click your mobile service.
+
+4. Click the **Data** tab, then click **Browse**.
+
+ ![][9]
+
+ Notice that the **TodoItem** table now contains data, with id values generated by Mobile Services, and that columns have been automatically added to the table to match the TodoItem class in the app.
+
+This concludes the **Get started with data** tutorial for iOS.
+
+## <a name="next-steps"> </a>Next steps
+
+This tutorial demonstrated the basics of enabling an iOS app to work with data in Mobile Services.
+
+<!--Next, consider completing one of the following tutorials that is based on the GetStartedWithData app that you created in this tutorial:
+
+* [Validate and modify data with scripts]
+ <br/>Learn more about using server scripts in Mobile Services to validate and change data sent from your app.
+
+* [Refine queries with paging]
+ <br/>Learn how to use paging in queries to control the amount of data handled in a single request.
+
+Once you have completed the data series, -->
+
+Next, try the iOS tutorial [Get started with authentication] to learn how to authenticate users of your app.
+
+<!--* [Get started with push notifications]
+ <br/>Learn how to send a very basic push notification to your app with Mobile Services.
+-->
+<!-- Anchors. -->
+
+[Get the Windows Store app]: #download-app
+[Create the mobile service]: #create-service
+[Add a data table for storage]: #add-table
+[Update the app to use Mobile Services]: #update-app
+[Test the app against Mobile Services]: #test-app
+[Next Steps]:#next-steps
+
+<!-- Images. -->
+[0]: ../Media/mobile-quickstart-startup-ios.png
+[1]: ../../Shared/Media/plus-new.png
+[2]: ../Media/mobile-create.png
+[3]: ../Media/mobile-create-page1.png
+[4]: ../Media/mobile-create-page2.png
+[5]: ../Media/mobile-data-tab-empty.png
+[6]: ../Media/mobile-create-todoitem-table.png
+[7]: ../Media/mobile-add-reference-ios.png
+[8]: ../Media/mobile-dashboard-tab.png
+[9]: ../Media/mobile-todoitem-data-browse.png
+[10]: ../Media/mobile-data-sample-download-ios.png
+
+
+<!-- URLs. -->
+[Validate and modify data with scripts]: ./mobile-services-validate-and-modify-data-dotnet.md
+[Refine queries with paging]: ./mobile-services-paging-data-ios.md
+[Get started with Mobile Services]: ./mobile-services-get-started-ios.md
+[Get started with data]: ./mobile-services-get-started-with-data-ios.md
+[Get started with authentication]: ./mobile-services-get-started-with-users-ios.md
+[Get started with push notifications]: ./mobile-services-get-started-with-push-ios.md
+[WindowsAzure.com]: http://www.windowsazure.com/
+[Windows Azure Management Portal]: https://manage.windowsazure.com/
+[Management Portal]: https://manage.windowsazure.com/
+[Install Xcode]: https://go.microsoft.com/fwLink/p/?LinkID=266532
+[Mobile Services iOS SDK]: https://go.microsoft.com/fwLink/p/?LinkID=266533
+[GitHub]: http://go.microsoft.com/fwlink/p/?LinkId=268622
+[GitHub repo]: http://go.microsoft.com/fwlink/p/?LinkId=268784
View
24 DevCenter/Mobile/Tutorials/mobile-services-get-started-with-data-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-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
+# 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.
@@ -26,7 +26,7 @@ This tutorial walks you through these basic steps:
This tutorial requires the [Mobile Services SDK].
-## <a name="download-app"></a>Download the project
+<h2><a name="download-app"></a><span class="short-header">Download the project</span>Download the GetStartedWithData project</h2>
This tutorial is built on the [GetStartedWithData app][Developer Code Samples site], which is a Windows Store app. The UI for this app is identical to the app generated by the Mobile Services quickstart, except that added items are stored locally in memory.
@@ -46,7 +46,7 @@ This tutorial is built on the [GetStartedWithData app][Developer Code Samples si
Notice that the saved text is displayed in the second column under **Query and update data**.
-## <a name="create-service"></a>Create mobile service
+<h2><a name="create-service"></a><span class="short-header">Create mobile service</span>Create a new mobile service in the Management Portal</h2>
Next, you will create a new mobile service to replace the in-memory list for data storage. Follow these steps to create a new mobile service.
@@ -83,7 +83,7 @@ Next, you will create a new mobile service to replace the in-memory list for dat
You have now created a new mobile service that can be used by your mobile apps. Next, you will add a new table in which to store app data. This table will be used by the app in place of the in-memory collection.
-## <a name="add-table"></a>Add a new table
+<h2><a name="add-table"></a><span class="short-header">Add a new table</span>Add a new table to the mobile service</h2>
To be able to store app data in the new mobile service, you must first create a new table in the associated SQL Database instance.
@@ -118,7 +118,7 @@ To be able to store app data in the new mobile service, you must first create a
You are now ready to use the new mobile service as data storage for the app.
-## <a name="update-app"></a>Update the app
+<h2><a name="update-app"></a><span class="short-header">Update the app</span>Update the app to use the mobile service for data access</h2>
Now that your mobile service is ready, you can update the app to store items in Mobile Services instead of the local collection.
@@ -187,7 +187,7 @@ Now that your mobile service is ready, you can update the app to store items in
Now that the app has been updated to use Mobile Services for backend storage, it's time to test the app against Mobile Services.
-## <a name="test-app"></a>Test the app
+<h2><a name="test-app"></a><span class="short-header">Test the app</span>Test the app against your new mobile service</h2>
1. In Visual Studio, press the F5 key to run the app.
@@ -238,7 +238,7 @@ This tutorial demonstrated the basics of enabling a Windows Store app to work wi
Once you have completed the data series, try one of these other tutorials:
* [Get started with authentication]
- <br/>Learn how to authenticate users of your app with Windows Account.
+ <br/>Learn how to authenticate users of your app.
* [Get started with push notifications]
<br/>Learn how to send a very basic push notification to your app.
View
15 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.
@@ -30,7 +31,7 @@ This tutorial requires the following:
This tutorial is based on the Mobile Services quickstart. Before you start this tutorial, you must first complete [Get started with Mobile Services].
-<a name="register"></a><h2><span class="short-header">Register your app</span>Register your app for the Windows Store</h2>
+<h2><a name="register"></a><span class="short-header">Register your app</span>Register your app for the Windows Store</h2>
To be able to send push notifications to Windows Store apps from Mobile Services, you must submit your app to the Windows Store. You must then configure your mobile service to integrate with WNS.
@@ -82,7 +83,7 @@ To be able to send push notifications to Windows Store apps from Mobile Services
Both your mobile service and your app are now configured to work with WNS.
-<a name="add-push"></a><h2><span class="short-header">Add push notifications</span>Add push notifications to your app</h2>
+<h2><a name="add-push"></a><span class="short-header">Add push notifications</span>Add push notifications to your app</h2>
1. Open the file App.xaml.cs and add the following using statement:
@@ -131,7 +132,7 @@ Both your mobile service and your app are now configured to work with WNS.
This makes sure that your app can raise toast notifications. These notifications are already enabled in the downloaded quickstart project.
-<a name="update-scripts"></a><h2><span class="short-header">Update the insert script</span>Update the registered insert script in the Management Portal</h2>
+<h2><a name="update-scripts"></a><span class="short-header">Update the insert script</span>Update the registered insert script in the Management Portal</h2>
1. In the Management Portal, click the **Data** tab and then click the **TodoItem** table.
@@ -163,7 +164,7 @@ Both your mobile service and your app are now configured to work with WNS.
This registers a new insert script, which sends a push notification (the inserted text) to the channel provided in the insert request.
-<a name="test"></a><h2><span class="short-header">Test the app</span>Test push notifications in your app</h2>
+<h2><a name="test"></a><span class="short-header">Test the app</span>Test push notifications in your app</h2>
1. In Visual Studio, press the F5 key to run the app.
View
15 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.
@@ -30,7 +31,7 @@ This tutorial requires the following:
This tutorial is based on the Mobile Services quickstart. Before you start this tutorial, you must first complete [Get started with Mobile Services].
-<a name="register"></a><h2><span class="short-header">Register your app</span>Register your app for the Windows Store</h2>
+<h2><a name="register"></a><span class="short-header">Register your app</span>Register your app for the Windows Store</h2>
To be able to send push notifications to Windows Store apps from Mobile Services, you must submit your app to the Windows Store. You must then configure your mobile service to integrate with WNS.
@@ -82,7 +83,7 @@ To be able to send push notifications to Windows Store apps from Mobile Services
Both your mobile service and your app are now configured to work with WNS.
-<a name="add-push"></a><h2><span class="short-header">Add push notifications</span>Add push notifications to your app</h2>
+<h2><a name="add-push"></a><span class="short-header">Add push notifications</span>Add push notifications to your app</h2>
1. Open the file default.js and insert the following code fragment into the app.OnActivated method overload, just after the args.setPromise method:
@@ -119,7 +120,7 @@ Both your mobile service and your app are now configured to work with WNS.
This makes sure that your app can raise toast notifications. These notifications are already enabled in the downloaded quickstart project.
-<a name="update-scripts"></a><h2><span class="short-header">Update the insert script</span>Update the registered insert script in the Management Portal</h2>
+<h2><a name="update-scripts"></a><span class="short-header">Update the insert script</span>Update the registered insert script in the Management Portal</h2>
1. In the Management Portal, click the **Data** tab and then click the **TodoItem** table.
@@ -151,7 +152,7 @@ Both your mobile service and your app are now configured to work with WNS.
This registers a new insert script, which sends a push notification (the inserted text) to the channel provided in the insert request.
-<a name="test"></a><h2><span class="short-header">Test the app</span>Test push notifications in your app</h2>
+<h2><a name="test"></a><span class="short-header">Test the app</span>Test push notifications in your app</h2>
1. In Visual Studio, press the F5 key to run the app.
View
138 DevCenter/Mobile/Tutorials/mobile-services-get-started-with-users-dotnet.md
@@ -2,15 +2,15 @@
<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 your choice of authentication provider supported by Mobile Services. After being successfully authenticated by the authentication provider and authorized by Mobile Services, a logged-in user is welcomed by name and the user ID value is displayed.
+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.
This tutorial walks you through these basic steps to enable authentication in your app:
@@ -20,20 +20,13 @@ 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].
-Mobile Services currently supports the following authentication providers:
-
-- Microsoft Live Connect
-- Facebook
-- Twitter
-- Google
-
<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 authentication providers. This method is easy to configure, and it supports multiple authentication 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/get-started">Single sign-on for Windows Store apps by using Live Connect</a>.</p>
+ <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-windows-8-dotnet">Single sign-on for Windows Store apps by using Live Connect</a>.</p>
</div>
-<a name="register"></a><h2><span class="short-header">Register your app</span>Register your app for authentication and configure Mobile Services</h2>
+<h2><a name="register"></a><span class="short-header">Register your app</span>Register your app for authentication and configure Mobile Services</h2>
-To be able to authenticate users, you must register your app with an authentication provider. You must then register a client secret with Mobile Services.
+To be able to authenticate users, you must register your app with an identity provider. You must then register the provider-generated client secret with Mobile Services.
1. Log on to the [Windows Azure Management Portal], click **Mobile Services**, and then click your mobile service.
@@ -43,54 +36,22 @@ To be able to authenticate users, you must register your app with an authenticat
![][5]
- You will provide this value to the authentication provider when you register your app.
-
-3. Expand your chosen authentication provider and follow the steps to register your app with the provider.
-
- <div class="dev-callout-new-collapsed">
- <strong>Microsoft Live Connect<span>Click to expand</span></strong>
- <div class="dev-callout-content">
- <p>Use the following procedure to register your app for authentication by using a Microsoft Account.</p>
- <!-- start copied HTML source -->
- <!-- end copied HTML source -->
- </div>
- </div>
-
- <div class="dev-callout-new-collapsed">
- <strong>Facebook<span>Click to expand</span></strong>
- <div class="dev-callout-content">
- <p>Use the following procedure to register your app for authentication by using a Facebook login.</p>
- <!-- start copied HTML source -->
- <!-- end copied HTML source -->
- </div>
- </div>
-
- <div class="dev-callout-new-collapsed">
- <strong>Twitter<span>Click to expand</span></strong>
- <div class="dev-callout-content">
- <p>Use the following procedure to register your app for authentication by using a Twitter login.</p>
- <!-- start copied HTML source -->
-
- <!-- end copied HTML source -->
- </div>
- </div>
-
- <div class="dev-callout-new-collapsed">
- <strong>Google<span>Click to expand</span></strong>
- <div class="dev-callout-content">
- <p>Use the following procedure to register your app for authentication by using a Google login.</p>
- <!-- start copied HTML source -->
- <!-- end copied HTML source -->
- </div>
- </div>
+ You may need to provide this value to the identity provider when you register your app.
+
+3. Choose a supported identity provider from the list below and follow the steps to register your app with that provider:
+
+ - <a href="/en-us/develop/mobile/how-to-guides/register-for-microsoft-authentication/" target="_blank">Microsoft Account</a>
+ - <a href="/en-us/develop/mobile/how-to-guides/register-for-facebook-authentication/" target="_blank">Facebook login</a>
+ - <a href="/en-us/develop/mobile/how-to-guides/register-for-twitter-authentication/" target="_blank">Twitter login</a>
+ - <a href="/en-us/develop/mobile/how-to-guides/register-for-google-authentication/" target="_blank">Google login</a>
-4. Back in the Management Portal, click the **Identity** tab, enter the app identifier and shared secret values obtained from your authentication provider, and click **Save**.
+4. Back in the Management Portal, click the **Identity** tab, enter the app identifier and shared secret values obtained from your identity provider, and click **Save**.
![][13]
-Both your mobile service and your app are now configured to work with your chosed authenication provider.
+Both your mobile service and your app are now configured to work with your chosen authentication provider.
-<a name="permissions"></a><h2><span class="short-header">Restrict permissions</span>Restrict permissions to authenticated users</h2>
+<h2><a name="permissions"></a><span class="short-header">Restrict permissions</span>Restrict permissions to authenticated users</h2>
1. In the Management Portal, click the **Data** tab, and then click the **TodoItem** table.
@@ -102,62 +63,49 @@ 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>
+<h2><a name="add-authentication"></a><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:
using Windows.UI.Popups;
6. Add the following code snippet to the MainPage class:
+ private MobileServiceUser user;
private async System.Threading.Tasks.Task Authenticate()
{
- LiveAuthClient liveIdClient = new LiveAuthClient("<< INSERT REDIRECT DOMAIN HERE >>");
-
- while (session == null)
+ while (user == null)
{
- // Force a logout to make it easier to test with multiple Microsoft Accounts
- if (liveIdClient.CanLogout)
- liveIdClient.Logout();
-
- LiveLoginResult result = await liveIdClient.LoginAsync(new[] { "wl.basic" });
- if (result.Status == LiveConnectSessionStatus.Connected)
+ string message;
+ try