code: def authenticate(self, credentials):
          
          auth.authenticate(credentials, self)
          self.authset.add(credentials)
docs: Log in to the server and store these credentials in `authset`.
  
          Can raise ConnectionFailure or OperationFailure.
  
          :Parameters:
            - `credentials`: A MongoCredential.