simple_token_authentication
simple_token_authentication copied to clipboard
Neo4j.rb support?
Right now, changing ActiveRecord::Base.send :include, SimpleTokenAuthentication::ActsAsTokenAuthenticatable to Neo4j::ActiveNode.send :include, SimpleTokenAuthentication::ActsAsTokenAuthenticatable does the trick. Also requires Devise 3.3.0.
Hi @subvertallchris,
If the adapter in 5c04e13 works well; what do you think about authoring your own commit so I can cherry-pick it to add Neo4j support? That would be a good way to keep credit where it is due I think ; )
Note: the gem should depend on 'neo4j', '~> 3.0.0' at a minimum.
Just tried it out. When I swap my branch for this commit, I get:
/blah blah blah/app/models/user.rb:3:in `<class:User>': undefined local variable or method `acts_as_token_authenticatable' for #<Class:0x007fcb3918cd18> (NameError)
I guess I need to do something to register Neo4j as an adapter?
I replied in the "adapter" thread because the code of the initializaer was there.
TL;DR: If you're a Neo4j user and would like to use it with Simple Token Authentication, please let me know here.
(An adapter was written quite a while ago, but I didn't receive enough feedback to release it so far.)