Token authentication with Rails and Devise

后端 未结 2 829
故里飘歌
故里飘歌 2021-02-02 04:04

I\'m following this excellent article to setup the authentification part of my rails (3.2) API:
http://blog.joshsoftware.com/2011/12/23/designing-rails-api-using-rabl-and-de

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-02 04:44

    Regarding Luc's question, that's my understanding as well.

    For example, using default non-API login, SessionsController.create handles the login. How do I retrieve the authentication_token and reuse it as part of the API calls later? Also, how do I override the SessionsController.create to call resource.reset_authentication_token! ?

提交回复
热议问题