There's a full range of criteria that are taken into account. Several of them would include whether or not there is due process available through the judicial system, whether the majority of human rights are respected, safe passage and freedom to leave, registration, etc.
On November 26th, 2018. See this statement in context.