简体   繁体   English

在ASP Classic中从ASP.NET获取经过身份验证的用户

[英]Get authenticated user from ASP.NET in ASP classic

I have a lot of ASP.NET 2.0 applications using the form authentication. 我有很多使用表单身份验证的ASP.NET 2.0应用程序。 It works well but now I need to integrate this in one of our old ASP classic application. 它运行良好,但是现在我需要将其集成到我们的旧ASP经典应用程序之一中。 I've checked this Scott Gu blog entry ( http://weblogs.asp.net/scottgu/archive/2007/03/04/tip-trick-integrating-asp-net-security-with-classic-asp-and-non-asp-net-urls.aspx ) and I follow the instruction but it doesn't work for me. 我已经检查了此Scott Gu博客条目( http://weblogs.asp.net/scottgu/archive/2007/03/04/tip-trick-integrating-asp-net-security-with-classic-asp-and- non-asp-net-urls.aspx ),但我按照说明进行操作,但这对我不起作用。 When I check the AUTH_USER server variable in my asp.net page, it contains the same user name as User.Identity.Name but the same server variable is empty when I return to my ASP classic page. 当我在asp.net页中检查AUTH_USER服务器变量时,它包含与User.Identity.Name相同的用户名,但是当我返回ASP经典页面时,该服务器变量为空。 All pages are in the same virtual directory on IIS 6.0. 所有页面都在IIS 6.0上的同一虚拟目录中。

Thanks for your help. 谢谢你的帮助。

I've figured out what was missing (the wildcard configuration). 我已经弄清楚了缺少的内容(通配符配置)。 With that set properly, it works. 正确设置后,它就可以工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM