I can't provide much in the way of detail as this isn't my field, but there was a thread on this subject last year that might be helpful! Hopefully we have someone around who can build on the answers there.
Obviously there's been a lot of talk recently re: Daesh and what actually makes a caliphate legitimate, but there seems to be a lot of disagreement on both the religious and political requirements.