Today, Mosaic authorship of the Torah is an Orthodox principle of faith.  But, "in medieval Ashkenaz, it was not regarded as heretical to posit post-Mosaic additions." Marc B. Shapiro, Seforim.
Jewish Ideas Daily