def get_supported_backend_by_name(name: str) -> Type[BaseOAuth2]:
    """Get a registered oauth provider by name. Raise a ValueError if provided not found."""
    global _SUPPORTED_BACKENDS

    if not _SUPPORTED_BACKENDS:
        _SUPPORTED_BACKENDS = load_supported_backends()

    if provider := _SUPPORTED_BACKENDS.get(name):
        return provider
    else:
        raise NotFoundError(f"Unsupported provider {name}. Supported providers are {_SUPPORTED_BACKENDS.keys()}")
Get a registered oauth provider by name. Raise a ValueError if provided not found.
argilla-server/src/argilla_server/security/authentication/oauth2/_backends.py