用户标识获取ID [英] user identification get ID's

查看:113
本文介绍了用户标识获取ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我是还在上大学的初学者程序员,并且正在创建业务应用程序.如果用户决定访问此应用程序,我希望当用户登录PC时提取这些凭据,并且我想获取其ID并将其与保存到此应用程序数据库的每条记录一起存储.我不确定是否清楚吗?它是只能通过公司内部网访问的Web应用程序,因此只能在本地公司的计算机上访问.

提前谢谢您.
关于

Hi
I''m a beginner programmer still in college, and I''m creating a business application. I''d like when a user logs in a PC to extract those credentials if that user decides to access this application and I''d like to get their ID and store it along with every record they save to this applications database. I''m not sure if I come across clear? its a web application only accessible through the companies intra-net, so its only accessible on company computers on premises.

Thank you in advance.
Regards

推荐答案

至于问题尚不清楚(请参阅我对问题的评论),我的答案将在黑暗中大声喊叫.您的问题似乎是基于对Windows如何对用户进行身份验证以及这些凭据如何工作的误解.看起来您可能需要 Windows身份验证 for ASP.NET.您应该了解这是完全不同的事情.首先,重要的是不要通过网络传递用户凭据.

请参阅:
http://msdn.microsoft.com/en-us/library/ff647405.aspx [ ^ ],
http://msdn.microsoft.com/en-us/library/907hb5w9.aspx [ ^ ].

—SA
As to the question is not really clear (please see my comment to the question), my answer will be pretty much shouting in the dark. It looks like your question is based on misunderstanding of how Windows authenticate the users and how those credentials work. And it looks like you might need Windows Authentication for ASP.NET. You should understand that this is very different thing. First of all, it is important that the user credentials are not passed over the network.

Please see:
http://msdn.microsoft.com/en-us/library/ff647405.aspx[^],
http://msdn.microsoft.com/en-us/library/907hb5w9.aspx[^].

—SA


这篇关于用户标识获取ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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