Windows登录必须自动登录我的网站 [英] windows login has to auto login my site

查看:190
本文介绍了Windows登录必须自动登录我的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个WebService,用于获取登录详细信息和Windows应用程序的身份验证.当我运行Windows应用程序(form1)时,单击(登录)按钮后,我将输入用户ID和密码.在IE中打开Web应用程序站点后,我将使用WebService在服务器端检查身份验证.

我需要一个解决方案,该解决方案要求在Windows应用程序中使用此身份验证,我需要直接登录到我的Web应用程序.

感谢您提供解决方案
您知道我该如何实现吗?

I created a WebService for getting login details and for authentication to a windows appication. When I run a windows appication (form1), I will enter user id and password after button click(login) i will check for authentication which is done at server side using the WebService after that I opened my web appication site in IE.

I need a solution that with this Authentication at windows appication I need to Login directly to my web appication.

Thanks for giving solution
Do you have an idea how I can accomplish that?

推荐答案

由于没有输入凭据,您想对Web应用程序请求进行身份验证,所以唯一的方法是

1)您只有
Since wihtout entereing credentials you want to authenticate the webapplication request, the only way is

1) You have only the
Request.LogonUserIdentity.Name

来标识用户,因此

2)从Windows应用程序对用户进行身份验证时,一旦身份验证成功,则将相应的用户名和用户的

to identify the user ,so

2) When you are authenticating the user from windows application , once the authentication is successful then store the corresponding username and

Request.LogonUserIdentity.Name 

存储在db中(也可以使用Access || xml)

3)然后,一旦收到对Web应用程序的请求,您将检查上述数据库中是否有

of the user in a db (Access || xml can also be used)

3) Then once you get a request for the web application ,you will check if

Request.LogonUserIdentity.Name 

可用.


在登录成功后尝试此操作

System.Diagnostics.Process.Start(< write url =" here =">);
try this on login success

System.Diagnostics.Process.Start(<write url="" here="">);


这篇关于Windows登录必须自动登录我的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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