Using auth_token from request headers instead from POST/PUT parameters with Rails 3 / devise

前端 未结 4 902
长情又很酷
长情又很酷 2021-01-30 18:18

I need to use token based authentication in a Rails 3.1 API in conjunction with the most recent version of devise. No problem so far.

Now I do not want to append my :au

4条回答
  •  孤城傲影
    2021-01-30 18:41

    Using devise and devise-token_authenticatable, I had to set this in my config/initializers/devise.rb in order to pass the token via http headers:

    config.http_authenticatable = true

提交回复
热议问题