views:

63

answers:

2

Hi,

Just wondering what people would suggest for an approach for a WinForms client that will have to interact with my web application (ruby on rails, which will use AuthLogic for authentication).

For example options such as: * authentication each HTTP request, * gets a token for the session until it times out * other?

This can be treated as a generic client to web application type question I think, i.e. web application using the standard HTTP/HTTPS etc.

thanks

A: 

You could get WinForms to send an XML request containing the username and encrypted password and then have the server return a user object in the response as well as setting a session variable.

I don't know what you can get back from WinForms, just a guess.

Ryan Bigg
+1  A: 

I got you boy..!!! I got you raynes..!!!

(..once passed the gone in sixty seconds quote)

voila: Here is what you need ...How to create an api in ruby on rails

Carlos Barbosa