用户模拟与ASP.NET窗体身份验证 [英] User impersonation with ASP.NET Forms Authentication

查看:108
本文介绍了用户模拟与ASP.NET窗体身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

情景:在一个电子商务系统,帮助台用户应该能够模仿或登录为特定客户(从基于Web的管理网站),让他可以支持客户的第一手 - 例如。当客户在手机上。

Scenario: In an e-commerce system, a helpdesk user should be able to "impersonate" or "log on as" a specific customer (from the web-based administration site) so that he can support the customer first-hand - eg. when the Customer is on the phone.

补充说明:没有必要跟踪原有的认证上下文。我们只需要提供按钮,将登录为无服​​务台用户需要知道密码,客户一个作为登录。

Additional clarification: There is no need to keep track of the original authentication context. We simply need to provide a "Log on as" button that will log on as the customer without the helpdesk user needing to know the password.

任何想法如何这种情况下可以使用常规的ASP.NET窗体身份验证来实现?

Any ideas how this scenario could be implemented using regular ASP.NET Forms Authentication?

推荐答案

梅比我不明白的情况完全吻合。但是,为什么不能让支持作为登录用户?

Maybee I don't understand the scenario exactly. But why not let the support login as the user?

FormsAuthentication.SetAuthCookie("yourCustomersUserName");

然后,它会到电子商务系统有一个更新的购物车或任何这样的支持可以帮助..

Then it will be up to the e-commerce system to have an updated "cart" or whatever so the support can help..

这篇关于用户模拟与ASP.NET窗体身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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