开发者

using ASIHTTPRequest on iPhone to login to webservice written in Ruby on Rails and uses AuthLogic

开发者 https://www.devze.com 2023-03-27 21:35 出处:网络
I have a website written in Ruby on Rails. Users can register & sign up on the website. I u开发者_Python百科se AuthLogic for that I want to be able to do that using my iPhone app. It looks like AS

I have a website written in Ruby on Rails. Users can register & sign up on the website. I u开发者_Python百科se AuthLogic for that I want to be able to do that using my iPhone app. It looks like ASIHTTPRequest is the best option for me to use.

So, I have a few questions ... how do I make sure I am sending the password & username somewhat securely? i.e. I don't want to send http://mysite.com/signup?u=X&p=y .

Secondly, should I store the persistent token, or should I store the username & password, or what?

I'm new to both web app making & iphone app making so I'm a bit stuck as to how to get started setting up such an API.

Thanks!


Check out the DiscussionBoard Example at RESTKit it shows an elegant login and session managing

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号