Description
Simple, multi-client and secure token-based authentication for Rails.
If you're building SPA or a mobile app, and you want authentication, you need tokens, not cookies.
This gem refreshes the tokens on each request, and expires them in a short time, so the app is secure.
Also, it maintains a session for each client/device, so you can have as many sessions as you want.
Devise Token Auth alternatives and similar gems
Based on the "Authentication and OAuth" category.
Alternatively, view Devise Token Auth alternatives based on common mentions on social networks and blogs.
-
warden-github-rails
Use GitHub as authorization and more. Use organizations and teams as means of authorization by simply wrapping your rails routes in a block. Also useful to get a user's details through OAuth. -
๐ Rails MVP Authentication
An authentication generator for Rails 7. Generate all the files needed to create a feature rich authentication system that you control. No configuration needed.
SaaSHub - Software Alternatives and Reviews
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Devise Token Auth or a related project?
README
Devise Token Auth
Simple, multi-client and secure token-based authentication for Rails.
If you're building SPA or a mobile app, and you want authentication, you need tokens, not cookies. This gem refreshes the tokens on each request, and expires them in a short time, so the app is secure. Also, it maintains a session for each client/device, so you can have as many sessions as you want.
Main features
- Seamless integration with:
- ng-token-auth for AngularJS
- Angular-Token for Angular
- redux-token-auth for React with Redux
- jToker for jQuery
- Oauth2 authentication using OmniAuth.
- Email authentication using Devise, including:
- User registration, update and deletion
- Login and logout
- Password reset, account confirmation
- Support for [multiple user models](./docs/usage/multiple_models.md).
- It is [secure](docs/security.md).
This project leverages the following gems:
Installation
Add the following to your Gemfile
:
gem 'devise_token_auth'
Then install the gem using bundle:
bundle install
Docs
Need help?
Please use StackOverflow for help requests and how-to questions.
Please open GitHub issues for bugs and enhancements only, not general help requests. Please search previous issues (and Google and StackOverflow) before creating a new issue.
Please read the issue template before posting issues.
[FAQ](docs/faq.md)
Contributors wanted!
See our Contribution Guidelines. Feel free to submit pull requests, review pull requests, or review open issues. If you'd like to get in contact, Zach Feldman has been wrangling this effort, you can reach him with his name @gmail. Further discussion of this in this issue.
We have some bounties for some issues, check them out!
Live Demos
Here is a demo of this app running with the ng-token-auth module and AngularJS.
Here is a demo of this app running with the Angular-Token service and Angular.
Here is a demo of this app using the jToker plugin and React.
The fully configured api used in these demos can be found here.
Contributors
Backers
Thank you to all our backers! ๐ [Become a backer]
Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]
License
This project uses the WTFPL
*Note that all licence references and agreements mentioned in the Devise Token Auth README section above
are relevant to that project's source code only.