zenodo_accessrequests/tokens.py
def compat_validate_token(cls, *args, **kwargs):
        """Multiple algorithm-compatible token validation."""
        data = None
        for algorithm in SUPPORTED_DIGEST_ALGORITHMS:
            data = cls(algorithm_name=algorithm).validate_token(
                *args, **kwargs)
            if not data:  # move to next algorithm
                continue
        return data
def compat_validate_token(cls, *args, **kwargs):
        """Multiple algorithm-compatible token validation."""
        data = None
        for algorithm in SUPPORTED_DIGEST_ALGORITHMS:
            data = cls(algorithm_name=algorithm).validate_token(
                *args, **kwargs)
            if not data:  # move to next algorithm
                continue
        return data
Multiple algorithm-compatible token validation.