def METHOD_NAME(self, url1: str, url2: str) -> bool:
    """Validate two URLs have the same base component (minus path)."""
    p1 = urlparse(url1)
    p2 = urlparse(url2)
    return (
        (p1.netloc == p2.netloc)
        and (p1.scheme == p2.scheme)
        and (p1.username == p2.username)
        and (p1.password == p2.password)
    )