Using authlogic with iPhone client using ASIHTTPRequest or NSURLConnection

泪湿孤枕 提交于 2019-12-10 18:58:40

问题


I am currently working on an iPhone front end for a rails service that uses vanilla authlogic for authentication. I am completely stuck on how to login to authlogic from the iPhone using ASIHTTPRequest or possibly NSURLConnection. How do I get the current user once I am already logged in? I have found many similar questions here on Stack Overflow but none of them provided good, in depth answers. Any help is greatly appreciated!


回答1:


I have figured it out! Authlogic supports http basic authentication, there is an explanation of this here Rails: Basic Authentication with Authlogic This is what ASIHTTPRequest uses.

Hope this helps anyone else who is as lost as I was.



来源:https://stackoverflow.com/questions/10854419/using-authlogic-with-iphone-client-using-asihttprequest-or-nsurlconnection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!