开发者

Disable sessions for devise

I am using Rails 3 and devise. I am building a restful api and I want devise to go through the custom warden strategy that I wrote for each request. But what I am seeing is that it authenticates a user and then uses the session to authenticate subsequent requests.

How can I disable the session entirely? Or get Devise to fully authenticate each time? Or is it just a matter开发者_JAVA技巧 of implementing something in my custom strategy?


I'm pretty sure adding this into your strategy would do what you want:

Warden::Manager.serialize_into_session {}
Warden::Manager.serialize_from_session {}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜