In this paper, we study the boundary version of the classical Cartan theorem. We show that for some weakly pseudoconvex domains, when a holomorphic self-mapping has a sufficiently high order of contact (which depends only on the geometric properties of the domains) with the identical map at some boundary point, then it must coincide with the identity.