I am developing server application with Ruby on Rails and I'd like to store session token in each request's body. For example {"token":"asdkjahsdoahgfblkasblbag"}
.
And I am stuck, really don't know how to configure Authlogic to handle token from params, not via cookie. And how to prevent set-cookie
head开发者_如何学JAVAer sending?
You can do that using the module Authlogic::Session. This module is responsible for authenticating the user via params.
Please check: http://github.com/binarylogic/authlogic/blob/master/lib/authlogic/session/params.rb
精彩评论