A representation of the credentials used by MongoDB

Hierarchy

  • MongoCredentials

Constructors

Properties

The method used to authenticate

mechanismProperties: AuthMechanismProperties

Special properties used by some types of auth mechanisms

password: string

The password used for authentication

source: string

The database that the user should authenticate against

username: string

The username used for authentication

Methods

  • Determines if two MongoCredentials objects are equivalent

    Parameters

    Returns boolean

  • If the authentication mechanism is set to "default", resolves the authMechanism based on the server version and server supported sasl mechanisms.

    Parameters

    Returns MongoCredentials

  • Returns void

Generated using TypeDoc