def check_credentials(self, username, password):
        """
        Override credential checking to use configured credentials.

        """
        return password is not None and self.credentials.get(username, None) == password