canonicalize registry URL to get _authToken