Hitting a ADO.NET Data Services from WPF client, forms authentication

Posted by Soulhuntre on Stack Overflow See other posts from Stack Overflow or by Soulhuntre
Published on 2009-09-17T21:52:59Z Indexed on 2010/03/16 5:06 UTC
Read the original article Hit count: 683

Hey all!

There are a number of questiosn on StackOverflow that ALMOST hit this topic head on, but they are either for other technologies, reference obsolets information or don;t supply an answer that I can suss out. So pardon the almost duplication :)

I have a working ADO.NET Data Service, and a WPF client that hits it. Now that they are working fine I want to add authentication / security to the system. My understanding of the steps so far is...

  1. Turn on forms authentication and configure it on the server (I have an existing asp.net membership service DB for other aspects of this app, so that isnt a problem) so that it is required for the service URL
  2. In WCF apply for and recieve a forms authentication "ticket" as part of a login routine
  3. Add that "ticket" to the headers of the ADO.NET service calls in WPF
  4. Profit!

All well and good - but does anyone have a line on a soup to nuts code sample, using the modern releases of these technologies?

Thanks!

© Stack Overflow or respective owner

Related posts about wpf

Related posts about ado.net-data-services