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

New Neo4j REST Auth Rules #88

Open
lrezek opened this issue Apr 10, 2015 · 4 comments
Open

New Neo4j REST Auth Rules #88

lrezek opened this issue Apr 10, 2015 · 4 comments

Comments

@lrezek
Copy link

lrezek commented Apr 10, 2015

I was doing some work on an OGM of my own, and I noticed that Neo4J changed their REST authentication rules relatively recently. You must not only supply a password now, but you have to change it after using it too. You can read more about that here.

This means your tests will not pass on Travis CI next time you push. I've gotten around this in my own OGM by setting the password after install via REST client (HTTPie). You can see the Travis configuration for that here.

Unfortunately, that also means you'll have to change your default credentials in your tests...

@improved-broccoli
Copy link

@lphuberdeau
Copy link
Owner

Any possibility to change the password twice sequentially and bring it back to the original one?

@lrezek
Copy link
Author

lrezek commented Apr 17, 2015

I'm not sure if you can change it back to the default after changing it, but I noticed that your default credentials are null/null in your configuration class.

That means you'll need to supply a value in there anyways, regardless of if you can change it back to default or not (which also means you'd have to take another look at your configuration tests).

If you prefer to do some file writing, you can edit the config file for Neo4J in travis.yml and disable the authentication before starting it. There's some information on that here, but I haven't tried it.

@ikwattro
Copy link
Contributor

You can use sed to change the configuration setting in the file :

sed -i.bak 's/^\(dbms\.security\.auth_enabled=\).*/\1false/' ./conf/neo4j-server.properties

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants