code: def check_credentials(self, username, password):
          
          return password is not None and self.credentials.get(username, None) == password
docs: Override credential checking to use configured credentials.