I have an webapplication that uses devise database authentication for all the controllers, however I want to have one controller action where authentication is also done using a token. Can i use devise for this?
I have an webapplication that uses devise database authentication for all the controllers, however
Share
Devise strategies have a
valid?method that is called to determine if the strategy should be enabled. This allows you to control available auth strategies on a per controller/action basis.Put this in an initializer:
let me know if it works.