Skip to content

Commit 6f36b08

Browse files
ADR 019 password rotation (#725)
This PR updates the preview feature "re-auth" significantly. The changes allow for catering to a wider range of use cases including simple password rotation. As part of this PR, all auth-related namespaces have been moved to preview - previously some did not have this, although the classes therein would not have been usable. Since this is a preview feature all changes here are breaking changes. The OnTokenExpiredAsync method in the IAuthTokenManager interface was removed, and a new HandleSecurityExceptionAsync method was added in its place. The ExpirationBased method in AuthTokenManagers was renamed to Bearer, and a new Basic method was added to cater for password rotation. --------- Co-authored-by: grant lodge <[email protected]>
1 parent 7c93291 commit 6f36b08

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+542
-429
lines changed

Neo4j.Driver/Neo4j.Driver.Tests.Integration/Direct/AuthenticationIT.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@
1919
using System.Collections.Generic;
2020
using System.Threading.Tasks;
2121
using FluentAssertions;
22-
using Neo4j.Driver.Auth;
2322
using Neo4j.Driver.IntegrationTests.Internals;
24-
using Neo4j.Driver.Internal;
2523
using Neo4j.Driver.Internal.Auth;
2624
using Xunit;
2725
using Xunit.Abstractions;

Neo4j.Driver/Neo4j.Driver.Tests.Integration/Direct/CertificateTrustIT.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
using System.Net;
2020
using System.Threading.Tasks;
2121
using FluentAssertions;
22-
using Neo4j.Driver.Auth;
22+
using Neo4j.Driver.Preview.Auth;
2323
using Neo4j.Driver.IntegrationTests.Internals;
2424
using Neo4j.Driver.Internal;
2525
using Neo4j.Driver.Internal.Auth;

Neo4j.Driver/Neo4j.Driver.Tests.Integration/Direct/DirectDriverTestBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// limitations under the License.
1717

1818
using System;
19-
using Neo4j.Driver.Auth;
19+
using Neo4j.Driver.Preview.Auth;
2020
using Neo4j.Driver.IntegrationTests.Internals;
2121
using Xunit;
2222
using Xunit.Abstractions;

Neo4j.Driver/Neo4j.Driver.Tests.Integration/Examples.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
using System.Diagnostics.CodeAnalysis;
2323
using System.Linq;
2424
using FluentAssertions;
25-
using Neo4j.Driver.Auth;
25+
using Neo4j.Driver.Preview.Auth;
2626
using Neo4j.Driver.IntegrationTests.Internals;
2727
using Xunit;
2828
using Xunit.Abstractions;

Neo4j.Driver/Neo4j.Driver.Tests.Integration/Internals/Cluster/CausalCluster.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
using System.Diagnostics;
2121
using System.Linq;
2222
using System.Threading;
23-
using Neo4j.Driver.Auth;
23+
using Neo4j.Driver.Preview.Auth;
2424

2525
namespace Neo4j.Driver.IntegrationTests.Internals;
2626

Neo4j.Driver/Neo4j.Driver.Tests.Integration/Internals/Cluster/ExistingCluster.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
using System;
1919
using Castle.Core.Internal;
20-
using Neo4j.Driver.Auth;
20+
using Neo4j.Driver.Preview.Auth;
2121

2222
namespace Neo4j.Driver.IntegrationTests.Internals;
2323

Neo4j.Driver/Neo4j.Driver.Tests.Integration/Internals/Cluster/ICausalCluster.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// limitations under the License.
1717

1818
using System;
19-
using Neo4j.Driver.Auth;
19+
using Neo4j.Driver.Preview.Auth;
2020

2121
namespace Neo4j.Driver.IntegrationTests.Internals;
2222

Neo4j.Driver/Neo4j.Driver.Tests.Integration/Internals/Cluster/SingleInstance.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
using System;
1919
using System.IO;
20-
using Neo4j.Driver.Auth;
20+
using Neo4j.Driver.Preview.Auth;
2121

2222
namespace Neo4j.Driver.IntegrationTests.Internals;
2323

Neo4j.Driver/Neo4j.Driver.Tests.Integration/Internals/ISingleInstance.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// limitations under the License.
1717

1818
using System;
19-
using Neo4j.Driver.Auth;
19+
using Neo4j.Driver.Preview.Auth;
2020

2121
namespace Neo4j.Driver.IntegrationTests.Internals;
2222

Neo4j.Driver/Neo4j.Driver.Tests.Integration/Internals/StandAlone/DefaultInstallation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
using System;
1919
using System.Diagnostics;
20-
using Neo4j.Driver.Auth;
20+
using Neo4j.Driver.Preview.Auth;
2121
using Neo4j.Driver.TestUtil;
2222

2323
namespace Neo4j.Driver.IntegrationTests.Internals;

0 commit comments

Comments
 (0)