使用 Devise 1.3 验证 JSON 登录请求 [英] Using Devise 1.3 to authenticate JSON login requests
本文介绍了使用 Devise 1.3 验证 JSON 登录请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是 Rails 的新手.我正在尝试为使用 JSON 进行身份验证的移动应用程序编写 API.我想使用 Devise 进行身份验证.我相信 Devise >1.3 也增加了对 JSON 的支持,但我找不到任何关于它的例子或文献.
I am new to rails. I am trying to write an API for a mobile application which authenticates using JSON. I want to use Devise for the authentication. I believe Devise >1.3 adds support for JSON as well but I cant find any examples or literature on it.
有人可以为我指出任何资源或提供一些示例代码吗?
Can someone please point me to any resource for this or provide some sample code?
谢谢!萨蒂扬
推荐答案
也许是这个 > http://jessehowarth.com/devise?
我计划在一两周内做同样的事情.
I plan to do the same thing in a week or two.
这篇关于使用 Devise 1.3 验证 JSON 登录请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文