pac4j/pac4j
Security engine for Java (authentication, authorization, multi frameworks): OpenID Connect, SAML2, CAS, OAuth, LDAP, JWT... observed · 2026-08-28
Health v2 · maintenance only
77/100
- Activity 99
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5331
- days_rel: n/a
- days_push: 7
- n_releases_24m: 0
Adoption not part of the score
2521 stars · 710 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
pac4j is a Java security engine for authenticating users, managing profiles, and enforcing authorizations across web applications and services. It supports many protocols (OpenID Connect, SAML, CAS, OAuth, JWT, LDAP, Kerberos) and integrates with 15+ Java web frameworks including Spring Boot, Play, and Vert.x.
Use cases
- add OIDC single sign-on to a Spring Boot app
- integrate SAML2 identity provider login in a Java web app
- delegate authentication to a CAS server from Play or Vert.x
- authenticate users against LDAP or SQL in a Java servlet app
- secure REST APIs with JWT tokens in Java
- swap authentication protocols without rewriting security code
- add OAuth login (Facebook, Twitter) to a Java web framework
When to choose
- you need a unified security model across multiple Java web frameworks
- you must support enterprise protocols like SAML, CAS, or OpenID Connect
- you want to change identity providers or frameworks without rewriting auth logic
- you need both authentication and fine-grained authorization (roles, CSRF, CORS) in one library
When to avoid
- you are building a non-JVM application
- you only need a simple session login with no external identity providers
- you want a full out-of-the-box identity server rather than an embedded security engine
- you are locked into Spring Security's native ecosystem and don't need multi-protocol support
Facets
framework · maturity stable
auth authorization security middleware security web-development backend developer-tools jvm cross-platform java openid-connect saml cas oauth jwt ldap spring-boot multi-framework sso web-server
5 sources
- readme: https://github.com/pac4j/pac4j · fetched 2026-08-28 · c7f92129cfdf
- homepage: http://www.pac4j.org · fetched 2026-08-29 · da17a4793404
- site_page: https://www.pac4j.org/docs/alldocs.html · fetched 2026-08-29 · 30aeab874478
- site_page: https://www.pac4j.org/docs/index.html · fetched 2026-08-29 · c5c4b33edcc2
- site_page: https://www.pac4j.org/docs/the-team.html · fetched 2026-08-29 · 1feba64765d9
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| pac4j/pac4j | main | 77 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem