Примечание
Для доступа к этой странице требуется авторизация. Вы можете попробовать войти или изменить каталоги.
Для доступа к этой странице требуется авторизация. Вы можете попробовать изменить каталоги.
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 |
A way of checking this configuration is the following | Une façon de vérifier cette configuration est la suivante |
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
test | testons |
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 |
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 |
Add a Windows Azure Project in order to deploy the application to Azure | Ajouter un projet Azure pour la publication sur Azure |
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 |
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é |
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 |
Also update the ACS namespace | Il est aussi nécessaire de mettre à jour le namespace ACS |
Replace https://localhost:62000 by https://archims.cloudapp.net in the page | Remplacer https://localhost:62000 by https://archims.cloudapp.net dans la page |
Benjamin