lynndylanhurley / devise_token_auth

Token based authentication for Rails JSON APIs. Designed to work with jToker and ng-token-auth.
Do What The F*ck You Want To Public License
3.54k stars 1.13k forks source link

Support for Mongodb / Mongoid #373

Open h8rry opened 9 years ago

h8rry commented 9 years ago

Are you guys planning to provide support for Mongodb / Mongoid?

vs4vijay commented 8 years ago

+1

dreamingblackcat commented 8 years ago

Yeah, would be great if the gem supports mongoid.

nicolasduval commented 8 years ago

+1, Yes would be great.

Zhomart commented 8 years ago

Here is an attempt #502 by @ThibaudD.

h7kayama commented 7 years ago

+1

kirykr commented 6 years ago

include this in your gemfile

gem 'rails',                      '~> 5.1.4'
gem 'mongoid',                    '~> 6.2', '>= 6.2.1'
gem 'devise_token_auth',          git: 'https://github.com/BunHouth/devise_token_auth.git', branch: 'mongoid'
gem 'mongoid-locker', '~> 0.3.4'

run bundle install and follow master branch configuration. it works for me.

zachfeldman commented 6 years ago

Very interesting @kirykr .

Looks like there's an open PR, but it's not related to @bonhouth? https://github.com/lynndylanhurley/devise_token_auth/pull/502

I Tweeted at @bonhouth to see if he'd consider PRing his approach, if it works that well. https://twitter.com/zachfeldman/status/917422457572773895