QUÉBEC - A University of Ottawa law professor is challenging a 2022 Quebec law that made it optional for legislature members to swear an oath of allegiance to the King.