(self, credentials)
Log in to the server and store these credentials in `authset`.

        Can raise ConnectionFailure or OperationFailure.

        :Parameters:
          - `credentials`: A MongoCredential.
Log in to the server and store these credentials in `authset`.
Log in to the server and store these credentials in authset .
def authenticate(self, credentials):
        """Log in to the server and store these credentials in `authset`.

        Can raise ConnectionFailure or OperationFailure.

        :Parameters:
          - `credentials`: A MongoCredential.
        """
        auth.authenticate(credentials, self)
        self.authset.add(credentials)
def authenticate ( self , credentials ) : auth . authenticate ( credentials , self ) self . authset . add ( credentials )