Papers as such did not exist before the French revolution, but there were church registries in every village. If your identity was in doubt, you could be detained until a messenger could be sent to your birthplace to verify it. Well, if they thought that you were worth the bother, that is...