如果我部署两个蔚蓝的Web角色,我需要把我的机器密钥? [英] If I deploy two azure web roles do I need to set my machine key?

查看:140
本文介绍了如果我部署两个蔚蓝的Web角色,我需要把我的机器密钥?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们是使用asp.net mvc的窗体身份验证,我记得在其他Web场方案,这是一个好主意,以确保计算机密钥服务器之间的匹配。我即将发售1相同的Web角色2,我很好奇,如果这一步是必要的Azure的还是它采取照顾?谢谢

We're using asp.net mvc forms authentication and I remember in other web farm scenarios it's a good idea to make sure the machine keys match between servers. I'm about to sale the same web role from 1 to 2 and I'm curious if this step is necessary for Azure or does it take care of that? Thanks

推荐答案

每个角色应该明确地共享同一台机器密钥。当你的规模1 Web角色的多个实例的Azure不仅会为你,不会增加额外的独立作用。例如,我们有因为我们的网站2使用相同的验证系统来做到这一点。由于.ASPXAUTH饼干是基于计算机密钥值加密后,只有登录这两个网站上工作,当它们共享相同的计算机密钥。

Each role should share the same machine key explicitly. Azure only does this for you when you scale multiple instances of 1 web role, not add an additional separate role. For example we had to do this because 2 of our sites use the same authentication system. Since the .ASPXAUTH cookie is encrypted based on machine key values, the logins only work on both sites when they share the same machine key.

这篇关于如果我部署两个蔚蓝的Web角色,我需要把我的机器密钥?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆