@omnigraph/neo4j
Version:
25 lines (24 loc) • 685 B
text/typescript
export type Neo4JAuthOpts = Neo4JBasicAuth | Neo4JKerberosAuth | Neo4JBearerAuth | Neo4JCustomAuth;
export interface Neo4JBasicAuth {
type: 'basic';
username: string;
password: string;
realm?: string;
}
export interface Neo4JKerberosAuth {
type: 'kerberos';
base64EncodedTicket: string;
}
export interface Neo4JBearerAuth {
type: 'bearer';
base64EncodedToken: string;
}
export interface Neo4JCustomAuth {
type: 'custom';
principal: string;
credentials: string;
realm: string;
scheme: string;
parameters?: any;
}
export declare function getAuthFromOpts(authOpts: Neo4JAuthOpts): import("neo4j-driver-core/types/types").AuthToken;