使用ASIHTTPRequest或NSURLConnection在iPhone客户端上使用authlogic [英] Using authlogic with iPhone client using ASIHTTPRequest or NSURLConnection

查看:74
本文介绍了使用ASIHTTPRequest或NSURLConnection在iPhone客户端上使用authlogic的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在为iPhone前端的Rails服务工作,该服务使用香草身份验证进行身份验证.我完全沉迷于如何使用ASIHTTPRequest或可能的NSURLConnection从iPhone登录到authlogic.登录后如何获取当前用户?我在堆栈溢出中发现了许多类似的问题,但没有一个问题提供了很好的深入答案.任何帮助,我们将不胜感激!

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!

推荐答案

我已经知道了! Authlogic支持http基本身份验证,此处对此有一个解释 Rails:使用Authlogic进行基本身份验证这就是ASIHTTPRequest所使用的.

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.

这篇关于使用ASIHTTPRequest或NSURLConnection在iPhone客户端上使用authlogic的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆