Answered by:
Single authentication for Windows Application & Web application

Question
-
Is it possible to share user authentication between Windows Application & Web Application?
If yes, how?
I want to show an ASP.Net Web Page to a user who is authenticated in Window Application or vice-versa.
Thank you.Friday, October 10, 2008 7:21 AM
Answers
-
Hi SandeepMGupta
I think the way you can try is to share the cookie. When your winform application login, you can add the authentication to the cookie then the web application can get these information from it.
You can take this article for reference. HttpCookie Class
Sincerely,
Kira Qian
Windows Forms General FAQs
Windows Forms Data Controls and Databinding FAQsTuesday, October 14, 2008 3:09 AM -
Hi SandeepMGupta
I am not familiar with ASP.NET cookies. If you want to make it safe. I think you can encode them. Then your winform application and your web application have the same arithmetic to encode and decode the cookies. No other application can access these cookies information.
Here is some ASP.NET Cookies Overview. If you have any question on using the cookies. You can contact ASP.NET forum webform topic for further help. http://forums.asp.net/18.aspx
Wish it can really help you.
Sincerely,
Kira Qian
Windows Forms General FAQs
Windows Forms Data Controls and Databinding FAQsWednesday, October 15, 2008 7:33 AM
All replies
-
Hi SandeepMGupta
I think the way you can try is to share the cookie. When your winform application login, you can add the authentication to the cookie then the web application can get these information from it.
You can take this article for reference. HttpCookie Class
Sincerely,
Kira Qian
Windows Forms General FAQs
Windows Forms Data Controls and Databinding FAQsTuesday, October 14, 2008 3:09 AM -
This is very good idea but is it secure?
How can I do this with full security?Tuesday, October 14, 2008 10:39 AM -
Hi SandeepMGupta
I am not familiar with ASP.NET cookies. If you want to make it safe. I think you can encode them. Then your winform application and your web application have the same arithmetic to encode and decode the cookies. No other application can access these cookies information.
Here is some ASP.NET Cookies Overview. If you have any question on using the cookies. You can contact ASP.NET forum webform topic for further help. http://forums.asp.net/18.aspx
Wish it can really help you.
Sincerely,
Kira Qian
Windows Forms General FAQs
Windows Forms Data Controls and Databinding FAQsWednesday, October 15, 2008 7:33 AM