【问题标题】:asp.net MVC switch userasp.net MVC切换用户
【发布时间】:2019-01-18 11:11:16
【问题描述】:

我有用户登录(管理员)并希望他能够切换到任何其他用户(代表他们执行任务)。 理想情况下,跟踪原始身份,以便管理员可以切换回管理员身份,而无需注销和登录。

【问题讨论】:

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


【解决方案1】:

这帮助我解决了问题: https://www.codeproject.com/Articles/43724/ASP-NET-Forms-authentication-user-impersonation

它在How do I use ASP.NET Identity 2.0 to allow a user to impersonate another user?中被引用 我只是在我的解决方案中使用了 dll 的源代码来获得想要的效果

【讨论】:

    猜你喜欢
    • 2011-04-23
    • 2017-09-16
    • 1970-01-01
    • 2016-09-06
    • 1970-01-01
    • 2023-03-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多