3

I have a Rails web application, and I want to build a JSON API as well so I can have mobile applications bound to it.

I've been reading a lot about it, and I don't get it why so many people prefer to activate authentication_token authentication instead of the normal authentication process that Devise offers us.

So, the question is: why use authentication_token ? Any performance reason ? Any security reason ? What is the best way to authenticate through an API ?

Gustavo Semião-Lobo
  • 2,468
  • 3
  • 18
  • 26

1 Answers1

0

authentication_token is basically used to authenticate user from outside i.e. say you sent user a email containing the activation link containing the token, so when he clicks the link, he directly gets logged in.

deepthi
  • 685
  • 3
  • 9