CORE-5832: fixed an issue that was causing authentication errors