Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Neo4j.rb support? #98

Open
subvertallchris opened this issue Sep 17, 2014 · 5 comments
Open

Neo4j.rb support? #98

subvertallchris opened this issue Sep 17, 2014 · 5 comments
Labels
feature request This issue requests a new feature. help wanted Please feel free to jump into the conversation! question When closed, this issue will become part of the FAQ.
Milestone

Comments

@subvertallchris
Copy link

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.

@gonzalo-bulnes gonzalo-bulnes added the question When closed, this issue will become part of the FAQ. label Sep 18, 2014
@gonzalo-bulnes
Copy link
Owner

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
Copy link
Owner

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

@subvertallchris
Copy link
Author

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?

@gonzalo-bulnes
Copy link
Owner

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

@gonzalo-bulnes gonzalo-bulnes added this to the v1.8.0 milestone Nov 25, 2014
@gonzalo-bulnes gonzalo-bulnes modified the milestones: v1.9.0, v1.8.0 Feb 21, 2015
@gonzalo-bulnes gonzalo-bulnes modified the milestones: v1.10.0, v1.9.0 Apr 11, 2015
@gonzalo-bulnes gonzalo-bulnes modified the milestones: v1.11.0, v1.10.0 Jun 3, 2015
@gonzalo-bulnes gonzalo-bulnes modified the milestones: v1.12.0, v1.11.0 Dec 13, 2015
@gonzalo-bulnes gonzalo-bulnes modified the milestones: v1.12.0, v1.13.0 Jan 6, 2016
@gonzalo-bulnes gonzalo-bulnes modified the milestones: v1.13.0, v1.14.0 Mar 28, 2016
@gonzalo-bulnes gonzalo-bulnes modified the milestones: v1.14.0, v1.15.0 Apr 20, 2016
@gonzalo-bulnes gonzalo-bulnes added the help wanted Please feel free to jump into the conversation! label Jul 17, 2016
@gonzalo-bulnes
Copy link
Owner

gonzalo-bulnes commented Jul 18, 2016

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 gonzalo-bulnes added the feature request This issue requests a new feature. label Jan 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request This issue requests a new feature. help wanted Please feel free to jump into the conversation! question When closed, this issue will become part of the FAQ.
Projects
None yet
Development

No branches or pull requests

2 participants