Fork me on GitHub

Implementations comparison for the profile management:

Categories

Implementation The default profile manager The profile manager is automatically available One profile is automatically available All profiles are automatically available
spring-webmvc-pac4j
ProfileManager

by injection thanks to the ComponentConfig
jee-pac4j
ProfileManager

by injection thanks to the Pac4jProducer

via the getUserPrincipal() method in the HttpServletRequest
buji-pac4j
ShiroProfileManager

via the regular SecurityUtils.getSubject()

via the regular SecurityUtils.getSubject()
spring-security-pac4j
SpringProfileManager

via the regular SecurityContextHolder.getContext().getAuthentication()

via the regular SecurityContextHolder.getContext().getAuthentication()
play-pac4j
ProfileManager

in the templates via the Pac4jScalaTemplateHelper

in the templates via the Pac4jScalaTemplateHelper
vertx-pac4j
VertxProfileManager
spark-pac4j
ProfileManager
javalin-pac4j
ProfileManager
ratpack-pac4j
pippo-pac4j
undertow-pac4j
UndertowProfileManager

From the securityContext.getAuthenticatedAccount()

From the securityContext.getAuthenticatedAccount()
CAS
ProfileManager
jax-rs-pac4j
dropwizard-pac4j
lagom-pac4j
Knox
jooby-pac4j2