Comments (6)
Thanks for the workaround, @anatoliychakkaev. We’ve been using a firewall to protect our database but I always wondered how one could use Basic auth. One idea that comes to mind is for Neo4j to support relative URLs in their responses so the base URL given to the GraphDatabase
class can be reused.
/cc @aseemk
from node-neo4j.
I saw a thread on the mailing list recently about Neo4j returning relative URLs, just like you propose, @gasi:
http://neo4j.org/forums/#nabble-td3353095%7Ca3375298
Parts of the discussion revolved around auth also, though. Not sure if it's totally relevant, but hopefully some of it helps?
from node-neo4j.
I finally got around to trying Neo4j on Heroku (love it), and did run into this too. Sorry for the delay in fixing this, but it's finally fixed upstream! Many thanks, @anatoliychakkaev, for the great report.
from node-neo4j.
Nice work, @aseemk! I had to do something similar at work recently, in my case for JIRA, and it turns out I could do it more elegantly using the Authorization
HTTP header for HTTP Basic Auth using Base64 encoded credentials: https://developer.atlassian.com/display/JIRADEV/JIRA+REST+API+Example+-+Basic+Authentication
Would that work for Neo4j?
from node-neo4j.
Thanks @gasi. I did look into using the header also, but ultimately, it would still require updating every HTTP request the library makes -- in this case, to add this header instead of tweak the URL -- so it felt like it'd be better (less work, and separation of concerns) to just tweak the URL and let request
generate the header. What do you think?
from node-neo4j.
I guess that works. Putting auth in the header gave me some (incorrect) sense of security since the information was Base64 encoded ;)
from node-neo4j.
Related Issues (20)
- Can We omit the callback of tx.commit() ? HOT 6
- neo4j 3.x HOT 1
- Transaction expiration time depends on server timestamp HOT 1
- GraphDatabase instance does not have access to functions HOT 9
- TypeError: Uncaught error: Cannot read property 'length' of undefined HOT 3
- README broken link HOT 1
- multiple statements HOT 4
- basic example fails HOT 3
- Create DataBase Neo4j with node js HOT 2
- resultDataContents HOT 8
- Callback function not working when running with mocha/chai HOT 2
- Cannot create new node. HOT 1
- TypeError: Error.captureStackTrace is not a function HOT 11
- Cannot Read Property 'length' of undefined
- neo4j.ImpermanentGraphDatabase is not implemented it seems
- Promise-wrapped fails to catch HOT 5
- Params doesn't seem to work when passing inside WHERE query
- Support for koa.
- Project status? HOT 5
- Migration from thingdom driver to Drivine. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-neo4j.