1

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!

Sam
  • 519
  • 1
  • 7
  • 32

1 Answers1

0

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.

Fei Han
  • 26,415
  • 1
  • 30
  • 41
  • I added following under system.web section of web.config . Is it right thing to do and handle the webfarm scenario? – Sam Dec 07 '16 at 15:40
  • 1
    please refer to [this thread](http://stackoverflow.com/questions/3855666/adding-machinekey-to-web-config-on-web-farm-sites) that could be helpful. – Fei Han Dec 12 '16 at 07:42