Upgrade Pac4j to 6.x (major release) to benefit from several refactors in the code of the library.
NOTE: Pac4j 6.x requires the whole module to be updated to run on Java 17.