update demo by using constants from pac4j core