Table of Contents

Method Custom

Namespace
Neo4j.Driver
Assembly
Neo4j.Driver.dll

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.

public static IAuthToken Custom(string principal, string credentials, string realm, string scheme)

Parameters

principal string

This is used to identify who this token represents.

credentials string

This is credentials authenticating the principal.

realm string

This is the "realm", specifies the authentication provider.

scheme string

This is the authentication scheme, specifying what kind of authentication that should be used.

Returns

IAuthToken

An authentication token that can be used to connect to Neo4j.

Remarks

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.

public static IAuthToken Custom(string principal, string credentials, string realm, string scheme, Dictionary<string, object> parameters)

Parameters

principal string

This is used to identify who this token represents.

credentials string

This is credentials authenticating the principal.

realm string

This is the "realm", specifies the authentication provider.

scheme string

This is the authentication scheme, specifying what kind of authentication that should be used.

parameters Dictionary<string, object>

Extra parameters to be sent along the authentication provider. If none is given, then no extra parameters will be added.

Returns

IAuthToken

An authentication token that can be used to connect to Neo4j.

Remarks