Add an configuration option to require authentication on /publicRooms and /profile endpoints.