The following section will guide you through the process of configuring and deploying the Margie’s Travel sample to Windows Azure.

Configuring Access Control namespace

  1. Create an ACS namespace; please refer to the walkthrough here.
  2. Create a new relying party for Margie’s Travel portal providing your Windows Azure hosted service account information as depicted below. Make sure that the Token Format is set to SWT.

  3. Select which identity providers you want to support



  4. Generate a signing key

  5. Now create a new relying party for the bouncer service. Also you should set the Token Format as SWT

  6. Select the list of Identity Providers you want to support

  7. On the Token Signing key section, provide the same key generated for the Margie’s Travel portal relying party instead of generating a new one.

    

Configuring Margie’s Travel Portal

  1. Open MargiesTravel.sln solution in Visual Studio

  2. Open the Web.Config file located in MargiesTravel.Web project

  3. Locate the audienceUris section and replace the local Uris by the ones you created in ACS

  4. Locate the wsFederation section and replace the issuer and realm values 

  5. Locate the certificateReference section and replace the Windows Azure DevFabric thumbprint by the one associated with your hosted service



    Note: You must have uploaded an SSL certificate to Windows Azure portal. 
  6. Locate the trustedIssuers section and provide your hosted service Url as the name and the token signing key for the thumbprint attribute 
  7. Open the ServiceConfiguration.Local.cscfg file inside the MargiesTravel.Cloud project and replace the local storage account information for you Windows Azure storage account and replace the WNS information with the values provided by the Windows Push Notifications & Live Connect portal



    Note: You can grab your Windows Push Notifications & Live Connect information from https://manage.dev.live.com/build 
  8. Replace the thumbprint on the Certificate node by the one associated with your hosted service


     
  9. Open the NotificationService.cs file located into the App_Data folder on the MargiesTravel.Web project and provide the connection string for your Windows Azure storage account


     
  10. Open the Index.cshtml located inside the Views/MyTrips folder and provide replace the values as depicted below


     
  11. Deploy the project to Windows Azure

Configuring Margie’s Travel Client

  1. Open the MargiesTravel.Client solution 

  2. Open the security.js file inside the js folder and replace the following variables with you hosted service and ACS configuration as depicted below: 

  3. Open the common.js file inside the js folder and replace the local Url with your hosted service Url

Last edited Dec 16, 2011 at 8:04 PM by juanpablogarcia, version 2

Comments

No comments yet.