Options
All
  • Public
  • Public/Protected
  • All
Menu

A representation of the credentials used by MongoDB

Hierarchy

  • MongoCredentials

Index

Properties

username: string

The username used for authentication

password: string

The password used for authentication

source: string

The database that the user should authenticate against

The method used to authenticate

mechanismProperties: AuthMechanismProperties

Special properties used by some types of auth mechanisms

Constructors

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

  • validate(): void
  • Returns void

Generated using TypeDoc