Table of Contents

Class AuthTokens

Namespace
Neo4j.Driver
Assembly
Neo4j.Driver.dll

This provides methods to create IAuthTokens for various authentication schemes supported by this driver. The scheme used must be also supported by the Neo4j instance you are connecting to.

public static class AuthTokens
Inheritance
AuthTokens
Inherited Members

Remarks

Properties

None

Gets an authentication token that can be used to connect to Neo4j instances with auth disabled. This will only work if authentication is disabled on the Neo4j Instance we are connecting to.

Methods

Basic(string, string)

The basic authentication scheme, using a username and a password.

Basic(string, string, string)

The basic authentication scheme, using a username and a password.

Bearer(string)

The bearer authentication scheme, using a base64 encoded token, such as those supplied by SSO providers. Gets an authentication token that can be used to connect to Neo4j.

Custom(string, string, string, string)

Gets an authentication token that can be used to connect to Neo4j instances with auth disabled. This will only work if authentication is disabled on the Neo4j Instance we are connecting to.

Custom(string, string, string, string, Dictionary<string, object>)

Gets an authentication token that can be used to connect to Neo4j instances with auth disabled. This will only work if authentication is disabled on the Neo4j Instance we are connecting to.

Kerberos(string)

The kerberos authentication scheme, using a base64 encoded ticket.