Class AuthTokenManagers
This class provides common implementations of IAuthTokenManager for various types of authentication.
public static class AuthTokenManagers
- Inheritance
-
AuthTokenManagers
- Inherited Members
Properties
- None
An implementation of IAuthTokenManager that allows connection with auth disabled. This will only work if authentication is disabled on the Neo4j Instance we are connecting to.
Methods
- Basic(Func<ValueTask<IAuthToken>>)
An implementation of IAuthTokenManager that will call the provided async function whenever a new token is required. It will handle caching of the token and will only call the function when a new token is needed.
- Bearer(Func<ValueTask<AuthTokenAndExpiration>>)
An implementation of IAuthTokenManager that will call the provided async function whenever a token is needed. It will cache the token and will only call the function when a new token is needed or the existing cached token has expired.
- Static(IAuthToken)
An implementation of IAuthTokenManager that allows connection using a static token that never changes.