Add credentials option and switch delegated prefix to optional