Search code examples
azureazure-web-app-servicews-federation

Azure WsFederation token in web farm scenario


I'm trying to follow an Azure sample to integrate Azure AD into my MVC 4.6 web app via WSFederation provided here https://github.com/Azure-Samples/active-directory-dotnet-webapp-wsfederation

This sample uses cookies to store authentication token. I want to know if this solution works in webfarm or load-balanced scenarios? Or do I need to implement it differently?

Thanks for your guidance and pointers!


Solution

  • This sample uses cookies to store authentication token. I want to know if this solution works in webfarm or load-balanced scenarios?

    If it uses cookies to store authentication token, and the servers on the farm share the machine key used to encrypt and decrypt cookie, the example should work in webfarm or load-balanced scenarios.