def valid_fileproto(uri):
    try:
        return bool(re.match('^(?:salt|https?|ftp)://', uri))
    except Exception:
        return False
Providing a refresh token should generate a new access token.
dataset/ETHPy150Open saltstack/salt/salt/modules/config.py/valid_fileproto--crossover with--dataset/ETHPy150Open soundcloud/soundcloud-python/soundcloud/tests/test_oauth.py/test_refresh_token_flow