How To: Simple Token Authentication Example

Giovanni Bonetti edited this page Jul 20, 2018 · 19 revisions

The TokenAuthenticatable strategy has been removed from Devise. As a consequence, the examples in this page are out of date.

See this gist by José Valim and some popular alternatives below.

Examples

Note: these examples are out of date.

Here is a blog post with some quick code snippets and a link to a quick example app on github. http://zyphdesignco.com/blog/simple-auth-token-example-with-devise

And here is another blog post with a detailed example: http://matteomelani.wordpress.com/2011/10/17/authentication-for-mobile-devices/

Alternatives

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.