Click here to Skip to main content
15,904,655 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?
Posted
Updated 5-Apr-11 4:34am
v2

Since wihtout entereing credentials you want to authenticate the webapplication request, the only way is

1) You have only the
Request.LogonUserIdentity.Name
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 
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 
is available in the above mentioned db.
 
Share this answer
 
Comments
karthikkushala 6-Apr-11 1:56am    
when i used Request.LoginUserIdentity.Name in my wed page am getting my server login name but i need userId of windows appication login Id
sekharkaza 6-Apr-11 2:43am    
Exactly ... u have to store windows userID against LoginUserIDentity in a local DB ....
try this on login success

System.Diagnostics.Process.Start(<write url="" here="">);
 
Share this answer
 
Comments
karthikkushala 6-Apr-11 1:57am    
how to use it it has more 5 overload methods

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900