diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/neo4j/Neo4jAutoConfigurationIntegrationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/neo4j/Neo4jAutoConfigurationIntegrationTests.java index 966fc33637..e6cbbe3605 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/neo4j/Neo4jAutoConfigurationIntegrationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/neo4j/Neo4jAutoConfigurationIntegrationTests.java @@ -118,7 +118,7 @@ class Neo4jAutoConfigurationIntegrationTests { @Bean AuthTokenManager authTokenManager() { - return AuthTokenManagers.expirationBased(() -> AuthTokens.basic("neo4j", neo4jServer.getAdminPassword()) + return AuthTokenManagers.bearer(() -> AuthTokens.basic("neo4j", neo4jServer.getAdminPassword()) .expiringAt(System.currentTimeMillis() + 5_000)); } @@ -155,7 +155,7 @@ class Neo4jAutoConfigurationIntegrationTests { @Bean AuthTokenManager authTokenManager() { - return AuthTokenManagers.expirationBased(() -> AuthTokens.basic("wrongagain", "stillwrong") + return AuthTokenManagers.bearer(() -> AuthTokens.basic("wrongagain", "stillwrong") .expiringAt(System.currentTimeMillis() + 5_000)); } diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/neo4j/Neo4jAutoConfigurationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/neo4j/Neo4jAutoConfigurationTests.java index 68ca8ed375..1a05936d3c 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/neo4j/Neo4jAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/neo4j/Neo4jAutoConfigurationTests.java @@ -192,7 +192,7 @@ class Neo4jAutoConfigurationTests { authentication.setPassword("Urlaub"); authentication.setRealm("Test Realm"); assertThat(new PropertiesNeo4jConnectionDetails(properties, - AuthTokenManagers.expirationBased( + AuthTokenManagers.bearer( () -> AuthTokens.basic("username", "password").expiringAt(System.currentTimeMillis() + 5000))) .getAuthTokenManager()).isNotNull(); } diff --git a/spring-boot-project/spring-boot-dependencies/build.gradle b/spring-boot-project/spring-boot-dependencies/build.gradle index 486134680e..326e5f7616 100644 --- a/spring-boot-project/spring-boot-dependencies/build.gradle +++ b/spring-boot-project/spring-boot-dependencies/build.gradle @@ -1070,7 +1070,7 @@ bom { ] } } - library("Neo4j Java Driver", "5.11.0") { + library("Neo4j Java Driver", "5.12.0") { group("org.neo4j.driver") { modules = [ "neo4j-java-driver"