Token based authentication for Rails JSON APIs. Designed to work with jToker and ng-token-auth.
Branch: master
Clone or download
aryehbeitz and MaicolBen create he.yml translation file for Hebrew (#1256)
* create he.yml translation file for Hebrew

* small fix
Latest commit 29e129b Feb 15, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Removed ensure pristine error due to not being used (#1217) Nov 6, 2018
app Split up methods in omniauth_callbacks_controller for easier extensib… Jan 24, 2019
bin Add rubocop (#1125) Jul 2, 2018
config/locales create he.yml translation file for Hebrew (#1256) Feb 15, 2019
docs Scope the EmailValidator to the DeviseTokenAuth module; add Solidus/S… Nov 4, 2018
gemfiles Update appraisals (#1249) Jan 12, 2019
lib Drop Devise Trackable module (#1075) Jan 19, 2019
test Drop Devise Trackable module (#1075) Jan 19, 2019
.codeclimate.yml Use redirect url to edit from initializer as well (#1228) Dec 3, 2018
.gitattributes references #51 Oct 28, 2014
.gitbook.yaml Update gitbook docs link Jul 1, 2018
.github_changelog_generator chore(docs): update CHANGELOG.md May 17, 2017
.gitignore Add Mongoid support (#1209) Oct 24, 2018
.rubocop.yml Add rubocop (#1125) Jul 2, 2018
.rubocop_todo.yml Add rubocop (#1125) Jul 2, 2018
.travis.yml Update appraisals (#1249) Jan 12, 2019
Appraisals Update appraisals (#1249) Jan 12, 2019
CHANGELOG.md v0.1.43.beta1 Nov 13, 2017
Gemfile Update appraisals (#1249) Jan 12, 2019
Guardfile Add rubocop (#1125) Jul 2, 2018
LICENSE update license Jun 30, 2014
README.md Update Angular-Token README links (#1257) Feb 15, 2019
Rakefile Add rubocop (#1125) Jul 2, 2018
SUMMARY.md Update gitbook docs link Jul 1, 2018
devise_token_auth.gemspec Add Mongoid support (#1209) Oct 24, 2018

README.md

Devise Token Auth

Gem Version Build Status Code Climate Test Coverage Downloads Backers on Open Collective Sponsors on Open Collective Join the chat at https://gitter.im/lynndylanhurley/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

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

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.

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