Extract basic auth from url