Pac4j
Security engine for Java (authentication, authorization, multi frameworks): OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...
Install / Use
/learn @pac4j/Pac4jREADME
pac4j is an easy and powerful security framework for Java to authenticate users, get their profiles and manage authorizations in order to secure web applications and web services.
It provides a comprehensive set of concepts and components. It is available for most frameworks/tools and supports most authentication/authorization mechanisms. It is licensed under the Apache 2 license.
| JDK | pac4j | Usage of Lombok | |-----|-------|-----------------| | 17 | v6.x | Yes | | 11 | v5.x | No | | 8 | v4.x | No |
Available implementations (Get started by clicking on your framework):
JEE • Spring Web MVC (Spring Boot) • Spring Webflux (Spring Boot) • Apache Shiro • Spring Security (Spring Boot)
CAS server • Syncope • Apache Knox
Play 2.x • Vertx • Spark Java • Ratpack • JAX-RS • Dropwizard
Javalin • Pippo • Undertow • Lagom • Akka HTTP • Jooby
Authentication mechanisms:
OpenID Connect - OAuth (Facebook, Twitter, Google...) - SAML - CAS - HTTP - Google App Engine - Kerberos (SPNEGO/Negotiate)
LDAP - SQL - JWT - MongoDB - CouchDB - IP address - REST API
Authorization mechanisms:
Roles - Anonymous/remember-me/(fully) authenticated - Profile type, attribute
CORS - CSRF - Security headers - IP address, HTTP method
Versions
The latest released version is the .
The next version is under development.
Read the documentation for more information.
Need help?
You can use the mailing lists or the commercial support.
Supported by
Related Skills
healthcheck
334.1kHost security hardening and risk-tolerance configuration for OpenClaw deployments
node-connect
334.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
prose
334.1kOpenProse VM skill pack. Activate on any `prose` command, .prose files, or OpenProse mentions; orchestrates multi-agent workflows.
frontend-design
82.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

