问题
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