-
Notifications
You must be signed in to change notification settings - Fork 165
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
How to use ImpersonatedUser in neo4j ogm session #999
Comments
You can provide a
|
Thank you for your response, it was helpful. |
I don't know the context, your application is running is, but normally you provide this configuration just once. |
Environment : Spring Boot + Apache Camel + Neo4j OGM
|
It will be a great help if you can revert back with any solution for above scenario. |
I have no experience with Apache Camel. I think with this background that the solution for your problem is to create two https://github.com/meistermeier/neo4j-issues-examples/tree/master/ogm-impersonation From the logs
|
Did this work? |
Thank you so much for your solution. Unfortunately, within camel environment, it didn't solve our purpose. |
Hey @joyantac33 you should write the |
We can use ImpersonatedUser at the time of using neo4j java driver like below:
Session session = neo4jDriver.session(SessionConfig.builder().withDatabase(neo4jDB).withImpersonatedUser(userName).build());
But how can we use ImpersonatedUser at the time of neo4j ogm session in java:
Session session = sessionFactory.openSession();
Expectation is to load or run cypherQuery through neo4j ogm session with impersonatedUser in java.
The text was updated successfully, but these errors were encountered: