Make authenticate_user! use a specific authentication strategy

16 views
Skip to first unread message

Fernando Marcelo

unread,
Nov 16, 2016, 11:06:05 AM11/16/16
to Devise
Hi,

When using authenticate_user! in before_action, is it possible to force Devise to use a specific strategy?

I have a Rails application and, at my API controllers, i would like to allow only token authentication. If the user already logged in using another methods and has a session cookie, he will still need to provide a token.

Thanks.
Reply all
Reply to author
Forward
0 new messages