Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Windows C#4.0 WebSocket
I have a C# Windows Application I am developing for a company. I also have a custom back-end system I wrote, that uses my custom data provider, as well. Basically, when you login to the windows application I would like it to verify the username and password that they use for their website. That way they can manage their accounts from one simple management area.
 
I was thinking of a post back to the server with the window's form data, and emulating a web browser. The cookies would return the user permissions. Not sure if this is the proper way of doing it, or what?
 
I wouldn't mind implementing a simple API to do this in my back-end code. Is it even possible to do it via the webserver, or would I have to develop an actual server application?
Posted 21-Jul-11 22:34pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Does it really have to go to sockets layer and developing APIs? You probably want to use WCF authentication service. MSDN has some docs on this topic: How to: Enable the WCF Authentication Service[^]
  Permalink  
Comments
Thomas Mack at 23-Jul-11 2:52am
   
Thanks. I'll look into it some. I was just tossing ideas out there so I really have no clue how I would want to do this.

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

  Print Answers RSS
0 OriginalGriff 5,170
1 DamithSL 4,357
2 Maciej Los 3,750
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,851


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 22 Jul 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100