【问题标题】:ASP.Net MVC5 Use windows authentication to authenticate user and run application using a service accountASP.Net MVC5 使用 windows 身份验证来验证用户并使用服务帐户运行应用程序
【发布时间】:2014-11-25 17:13:52
【问题描述】:

我使用 Windows 身份验证对用户进行身份验证,并且该应用程序由另一个用户运行,使用此链接 http://weblogs.asp.net/owscott/iis-using-windows-authentication-with-minimal-permissions-granted-to-disk ,我让后端的应用程序由服务帐户运行。 当我使用 User.Identity.name 时,我得到的是运行应用程序的用户,而不是经过身份验证的用户。如何获取经过身份验证的用户的用户身份?

【问题讨论】:

  • 匿名认证真的被禁用了吗?听起来它还在继续。

标签: asp.net-mvc-5 windows-authentication


【解决方案1】:

来自文章下方的cmets:

Request["LOGON_USER"] 返回原始用户。

【讨论】:

    猜你喜欢
    • 2020-11-10
    • 2011-06-27
    • 1970-01-01
    • 1970-01-01
    • 2021-02-08
    • 2015-02-20
    • 2020-06-24
    • 2020-05-21
    • 1970-01-01
    相关资源
    最近更新 更多