From 9e20ad01b0facc9cc6eb0b7a86cd308e8d04cd28 Mon Sep 17 00:00:00 2001 From: Stefano Ottolenghi Date: Tue, 17 Dec 2024 17:51:49 +0100 Subject: [PATCH 1/2] Clarify that Driver creation methods lacking auth token expect disabled auth on the server side. --- .../Neo4j.Driver/Public/GraphDatabase.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Neo4j.Driver/Neo4j.Driver/Public/GraphDatabase.cs b/Neo4j.Driver/Neo4j.Driver/Public/GraphDatabase.cs index 006d3c4e5..ae62a2e50 100644 --- a/Neo4j.Driver/Neo4j.Driver/Public/GraphDatabase.cs +++ b/Neo4j.Driver/Neo4j.Driver/Public/GraphDatabase.cs @@ -1,12 +1,12 @@ // Copyright (c) "Neo4j" // Neo4j Sweden AB [https://neo4j.com] -// +// // Licensed under the Apache License, Version 2.0 (the "License"). // You may not use this file except in compliance with the License. // You may obtain a copy of the License at -// +// // http://www.apache.org/licenses/LICENSE-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -31,7 +31,7 @@ public static class GraphDatabase /// public static IBookmarkManagerFactory BookmarkManagerFactory => new BookmarkManagerFactory(); - /// Returns a driver for a Neo4j instance with default configuration settings. + /// Returns a driver for a Neo4j instance with default configuration settings and disabled authentication. /// /// The URI to the Neo4j instance. Should be in the form /// protocol://<server location>:<port>. If port is not supplied the default of 7687 will @@ -47,7 +47,7 @@ public static IDriver Driver(string uri) return Driver(new Uri(uri)); } - /// Returns a driver for a Neo4j instance with default configuration settings. + /// Returns a driver for a Neo4j instance with default configuration settings and disabled authentication. /// /// The URI to the Neo4j instance. Should be in the form /// protocol://<server location>:<port>. If port is not supplied the default of 7687 will @@ -63,7 +63,7 @@ public static IDriver Driver(Uri uri) return Driver(uri, (Action)null); } - /// Returns a driver for a Neo4j instance with custom configuration. + /// Returns a driver for a Neo4j instance with custom configuration and disabled authentication. /// /// The URI to the Neo4j instance. Should be in the form /// protocol://<server location>:<port>. If port is not supplied the default of 7687 will @@ -84,7 +84,7 @@ public static IDriver Driver(string uri, Action action) return Driver(new Uri(uri), action); } - /// Returns a driver for a Neo4j instance with custom configuration. + /// Returns a driver for a Neo4j instance with custom configuration and disabled authentication. /// /// The URI to the Neo4j instance. Should be in the form /// protocol://<server location>:<port>. If port is not supplied the default of 7687 will @@ -242,7 +242,7 @@ public static IDriver Driver(Uri uri, IAuthTokenManager authTokenManager, Action var builder = Config.Builder; action?.Invoke(builder); var config = builder.Build(); - + var context = new DriverContext(uri, authTokenManager, config); var connectionFactory = new PooledConnectionFactory(context); From 4089bd607644745a1a87a8216d36638bff849d7f Mon Sep 17 00:00:00 2001 From: Stefano Ottolenghi Date: Tue, 17 Dec 2024 17:54:58 +0100 Subject: [PATCH 2/2] restore whitespace --- Neo4j.Driver/Neo4j.Driver/Public/GraphDatabase.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Neo4j.Driver/Neo4j.Driver/Public/GraphDatabase.cs b/Neo4j.Driver/Neo4j.Driver/Public/GraphDatabase.cs index ae62a2e50..f567903c0 100644 --- a/Neo4j.Driver/Neo4j.Driver/Public/GraphDatabase.cs +++ b/Neo4j.Driver/Neo4j.Driver/Public/GraphDatabase.cs @@ -1,12 +1,12 @@ // Copyright (c) "Neo4j" // Neo4j Sweden AB [https://neo4j.com] -// +// // Licensed under the Apache License, Version 2.0 (the "License"). // You may not use this file except in compliance with the License. // You may obtain a copy of the License at -// +// // http://www.apache.org/licenses/LICENSE-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -242,7 +242,7 @@ public static IDriver Driver(Uri uri, IAuthTokenManager authTokenManager, Action var builder = Config.Builder; action?.Invoke(builder); var config = builder.Build(); - + var context = new DriverContext(uri, authTokenManager, config); var connectionFactory = new PooledConnectionFactory(context);