Skip to content
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

Re auth #689

Merged
merged 49 commits into from
May 30, 2023
Merged

Re auth #689

merged 49 commits into from
May 30, 2023

Conversation

RichardIrons-neo4j
Copy link
Contributor

@RichardIrons-neo4j RichardIrons-neo4j commented Mar 8, 2023

Re-Authentication (preview)

Introduces updated authentication APIs which cover several features.

AuthTokenManagers (5.9 API Docs)

AuthTokenManagers allows the creation of a new IAuthTokenManager instance which can be then be used when instantiating a driver instance preview interface.

Session Tokens (5.9 API Docs)

Sessions can now be configured with an auth token.
Session tokens require server version 5.6+ this can be checked for with IDriver.SupportsSessionAuthAsync 5.9 API Docs

Preview status & Feedback wanted

Introduced in preview status so APIs could see change.
Any feedback is welcome: Discussion.

Neo4j.Driver/fix.patch Outdated Show resolved Hide resolved
Neo4j.Driver/ReauthTests/Program.cs Outdated Show resolved Hide resolved
Neo4j.Driver/Neo4j.Driver/SessionConfig.cs Outdated Show resolved Hide resolved
Neo4j.Driver/Neo4j.Driver/Neo4jException.cs Outdated Show resolved Hide resolved

namespace Neo4j.Driver.Auth;

public record AuthTokenAndExpiration
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

class doesn't have documentation

Neo4j.Driver/Neo4j.Driver/Auth/AuthSchemes.cs Show resolved Hide resolved
Assembly
.GetExecutingAssembly()
.DefinedTypes
.Where(t => t.IsAssignableTo(typeof(IProtocolObject))));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While this is nicer one issue it leads to is all the classes being highlighted as unused, we could disable that check on all of them though

@thelonelyvulpes thelonelyvulpes marked this pull request as ready for review May 25, 2023 12:58
@thelonelyvulpes thelonelyvulpes self-requested a review May 30, 2023 11:48
Copy link
Contributor

@thelonelyvulpes thelonelyvulpes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reauth.

@thelonelyvulpes thelonelyvulpes merged commit 7a1d600 into neo4j:5.0 May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants