simple_token_authentication icon indicating copy to clipboard operation
simple_token_authentication copied to clipboard

Neo4j.rb support?

Open subvertallchris opened this issue 11 years ago • 5 comments

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.

subvertallchris avatar Sep 17 '14 16:09 subvertallchris

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 ; )

gonzalo-bulnes avatar Oct 05 '14 21:10 gonzalo-bulnes

Note: the gem should depend on 'neo4j', '~> 3.0.0' at a minimum.

gonzalo-bulnes avatar Oct 06 '14 17:10 gonzalo-bulnes

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?

subvertallchris avatar Oct 07 '14 19:10 subvertallchris

I replied in the "adapter" thread because the code of the initializaer was there.

gonzalo-bulnes avatar Oct 07 '14 21:10 gonzalo-bulnes

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.)

gonzalo-bulnes avatar Jul 18 '16 08:07 gonzalo-bulnes