怀疑Asp.net中的假冒行为 [英] Doubt in Impersonation in Asp.net

查看:128
本文介绍了怀疑Asp.net中的假冒行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个页面,所有人都可以在该页面查看页面我有一个链接,重定向到另一个页面。

当我点击该链接时,我需要提供模拟概念,其中只有少数用户可以查看该页面。

用户ID和密码将保留在数据库中。



请提供详细信息如何从DB获取值和使用模拟验证用户。



如果模仿不起作用,请提供其他一些方法。



感谢和问候,

Mathi

Hi,

I have a page where all can view the page in that page I have a link which redirects to another page.
when I click on that link I need to provide impersonation concept where only few users can view that page.
The user Id and the Password will be maintained in the DB.

Please provide me details how can I get the value from DB and validate the user using impersonation.

If impersonation doesn't work in this kindly provid me some other approach.

Thanks & Regards,
Mathi

推荐答案

Go for - ASP.NET授权 [ ^ ]。



关于CodeProject的精彩文章 - ASP.NET身份验证和授权 [ ^ ]。

另一个例子 - asp.net中的授权是什么? web.config中的授权规则允许或拒绝asp.net中特定用户或角色的资源。 [ ^ ]。



您还可以参考其他有用的 Google [ ^ ]。
Go for - ASP.NET Authorization[^].

Nice Article on CodeProject - ASP.NET authentication and authorization[^].
Another Example - what is authorization in asp.net | authorization rules in web.config to allow or deny resources to particular user or role in asp.net.[^].

You can also refer other useful resources suggested by Google[^].


这篇关于怀疑Asp.net中的假冒行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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