Step by step guide: Azure App authenticated by Azure ACS–Guide étape par étape: App. Azure authentifiée par Azure ACS

 

English Français
Most Azure ACS samples show how to authenticate with Azure ACS, but not how to deploy to Azure the Web application. Let’s see how to transform a sample. Let’s start from the sample at https://acs.codeplex.com/wikipage?title=ASP.NET%20Simple%20Forms&referringTitle=Samples and make it run locally as instructed La plupart des exemples montrent comment s’authentifier avec Azure ACS, mais pas comment déployer l’application sur Azure l’application Web. Voyons comment transformer un exemple. Commençons par l’exemple à https://acs.codeplex.com/wikipage?title=ASP.NET%20Simple%20Forms&referringTitle=Samples que nous faisons fonctionner en suivant les instructions

image

image

image

image

image

image

image

 

image

image

image

image

image

A way of checking this configuration is the following Une façon de vérifier cette configuration est la suivante

image

Add STS reference as explained on the following page Ajouter la référence au STS comme indiqué sur la page

https://acs.codeplex.com/wikipage?title=ASP.NET%20Simple%20Forms&referringTitle=Samples

image

image

test testons

image

It works locally. Let’s port it to Azure. The Azure URL will be Cela fonctionne localement, faisons-le fonctionner sur Azure. L’URL Azure sera

https://archims.cloudapp.net

 

NB: to add HTTPS support, please refer to my previous post NB: pour ajouter le support d’HTTPS, voir ce billet précédent.

 

Replace https://localhost:62000 by https://archims.cloudapp.net in the following files: Remplacer https://localhost:62000 par https://archims.cloudapp.net dans les fichiers suivants

image

image

Add a Windows Azure Project in order to deploy the application to Azure Ajouter un projet Azure pour la publication sur Azure

image

image

image

image

image

image

uncheck “Enable Diagnostics” in order to remove the dependency to local storage Dé-cocher la case “Enable Diagnostics” pour ne pas dépendre du stockage local

image

Comment the following in the Web.config file because Azure will run by default with an integrated ASP.NET pipeline Mettre en commentaire les lignes suivantes dans le fichier Web.config puisqu’Azure fonctionne par défaut en pipeline ASP.NET intégré

image

It is also necessary to add an explicit reference with Copy Local = True to the WIF assembly so that it is copied to Azure while deploying Il est également nécessaire d’ajouter une référence explicite avec Copy Local = True vers l’assembly WIF de façon à ce qu’elle soit copiée quand on déploie sur Azure

image

image

image

 

image

Also update the ACS namespace Il est aussi nécessaire de mettre à jour le namespace ACS

image

image

Replace https://localhost:62000 by https://archims.cloudapp.net in the page Remplacer https://localhost:62000 by https://archims.cloudapp.net dans la page

image

image

image

image

image

image

image

image

image

Smile

Benjamin