AUTH_USER 和 REMOTE_USER cgi 变量之间的区别 [英] Difference between AUTH_USER and REMOTE_USER cgi variables
问题描述
文档对此并不完全清楚 - 这些变量之间有区别吗?至少在 IIS 上它们看起来是相同的,但如果它在其他服务器下可能不同,我不想依赖它.
The docs aren't entirely clear on this - is there a difference between these variables? On IIS at least they appear to be identical, but I don't want to rely on that if it might be different under other servers.
推荐答案
根据 Adobe ColdFusion 文档,它们是相同的.
According to the Adobe ColdFusion documentation they are the same.
http://livedocs.adobe.com/Coldfusion/8/htmldocs/help.html?content=Expressions_8.html
看openbd源码,remote_user和auth_user映射到同一个key,所以返回的值是一样的.
Looking at the openbd source code, the remote_user and the auth_user are mapped to the same key, so it returns the same value.
查看 railo 源代码,我不太了解发生了什么,但它似乎正在设置 remote_user,我不确定是否在任何地方设置了 auth_user.
Looking at the railo source code, I'm not quite understanding what is going on, but it appears to be setting remote_user, and I'm not sure if auth_user is being set anywhere.
如果您正在设计一个与coldfusion、railo 和openbd 兼容的应用程序,使用remote_user 似乎更安全.也许其他人可以发表评论,因为我不完全理解代码,而无需花时间深入调查.
If you are designing an app that is compatible with coldfusion, railo, and openbd, it appears safer to use remote_user. Maybe someone else can comment because I don't fully understand the code without taking the time to investigate deeply.
这篇关于AUTH_USER 和 REMOTE_USER cgi 变量之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!