pac4j/jax-rs-pac4j
pac4j/jax-rs-pac4j has 56 GitHub stars and 22 forks. Star changes are not measured yet. Last checked 2026-11-13 04:06 UTC. Last push 2026-11-10.
Security library for JAX-RS, Jersey and RESTEasy
Measured star growth
- in 24h
- Collecting history
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original
jax-rs-pac4jis the JAX-RS (Jersey and RESTEasy) implementation of pac4j, the security engine for Java. If it is useful to you, please ⭐ star pac4j on GitHub: it helps other developers discover it!
jax-rs-pac4j secures Jakarta REST applications with authentication, authorization, login callbacks and logout. It uses the pac4j security engine and supports OpenID Connect, SAML, CAS, OAuth, JWT and other authentication mechanisms.
Version 8.1.0 supports Jersey 3 and 4 and RESTEasy 6 and 7, with Java 17 and compatibility across the pac4j 6.x series. The project is available under the Apache 2 license.
| jax-rs-pac4j | JDK | pac4j | JAX-RS | Servlet |
|---|---|---|---|---|
| version >= 8 | 17 | v6 | v3 / v4 | v5 / v6 / v6.1 (depending on the module) |
| version >= 7 | 17 | v6 | v3 / v4 | v5 |
| version >= 6 | 11 | v5 | v3 | v5 |
| version >= 5 | 11 | v5 | v2 | v4 |
| version >= 4 | 8 | v4 | v2 | v4 |
Get started
Choose the module matching your runtime:
| Runtime | Maven artifact (org.pac4j) |
|---|---|
| Jersey 3.1 | jersey3-pac4j |
| Jersey 4.0 | jersey4-pac4j |
| RESTEasy 6.2 | resteasy6-pac4j |
| RESTEasy 7.0 | resteasy7-pac4j |
Add the pac4j modules for your authentication mechanisms and supply the matching Jersey or RESTEasy runtime. The dependency guide explains the supported combinations.
Documentation
- Configure authentication and register the integration, including Servlet, Grizzly, CDI and sessionless setups.
- Protect resources with
@Pac4JSecurity. - Access the authenticated user profile.
- For browser login, configure the callback and logout endpoints.
See components and features for the integration architecture, and the migration guide when upgrading an existing application.
Versions
Read the release notes or see development builds.
Demo
The jax-rs-pac4j demo illustrates authentication with HTTP Basic, forms and CAS.
Need help?
Use the mailing lists or commercial support.
Explore related projects
trimstray/the-book-of-secret-knowledge
A collection of inspiring lists, manuals, cheatsheets, blogs, hacks, one-liners, cli/web tools and more.
258,076 starsHack-with-Github/Awesome-Hacking
A collection of various awesome lists for hackers, pentesters and security researchers
125,360 starsswisskyrepo/PayloadsAllTheThings
A list of useful payloads and bypass for Web Application Security and Pentest/CTF
82,623 starscaddyserver/caddy
Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
79,020 stars