Authenticate into asp.net app from a winforms app

Posted by tempid on Stack Overflow See other posts from Stack Overflow or by tempid
Published on 2010-05-24T20:49:29Z Indexed on 2010/05/24 20:51 UTC
Read the original article Hit count: 927

Filed under:
|
|

Hi there!

We have 2 applications - 1 windows and 1 web (asp.net). Winforms runs on the customer's machine where as the website is hosted within our company. The winforms has a link which opens the web app in a browser window. The web app is secured so the login page is shown. The username and password is the same as the windows app login. How do I auto-login to the web app so the user will not see the login screen?

The web app uses FormsAuthentication.SetAuthCookie to create an encrypted cookie on the user's machine. How do I create the same from the winforms app so the user will not see the login screen?

Thanks.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about winforms