Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

pac4j

> 后端框架
Open source

Security engine for Java (authentication, authorization, multi frameworks): OpenID Connect, SAML2, CAS, OAuth, LDAP, JWT...

2.5K stars0 likes2 views
WebsiteGitHub

About

Security engine for Java (authentication, authorization, multi frameworks): OpenID Connect, SAML2, CAS, OAuth, LDAP, JWT...

### `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**](https://www.pac4j.org/docs/main-concepts-and-components.html). 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*): [Spring Web MVC (Spring Boot)](https://github.com/pac4j/spring-webmvc-pac4j) • [J2E](https://github.com/pac4j/j2e-pac4j) • [Spring Webflux (Spring Boot)](https://github.com/pac4j/spring-webflux-pac4j) • [Apache Shiro](https://github.com/bujiio/buji-pac4j) • [Spring Security (Spring Boot)](https://github.com/pac4j/spring-security-pac4j) [CAS server](https://apereo.github.io/cas/6.6.x/integration/Delegate-Authentication.html) • [Syncope](https://syncope.apache.org) • [Apache Knox](http://knox.apache.org/books/knox-1-6-0/user-guide.html#Pac4j+Provider+-+CAS+/+OAuth+/+SAML+/+OpenID+Connect) [Play 2.x/3.x](https://github.com/pac4j/play-pac4j) • [Vertx](https://github.com/pac4j/vertx-pac4j) • [Spark Java](https://github.com/pac4j/spark-pac4j) • [Ratpack](http://ratpack.io/manual/current/pac4j.html#pac4j) • [JAX-RS](https://github.com/pac4j/jax-rs-pac4j) • [Dropwizard](https://github.com/pac4j/dropwizard-pac4j) [Javalin](https://github.com/pac4j/javalin-pac4j) • [Pippo](http://www.pippo.ro/doc/security.html#pac4j-integration) • [Undertow](https://github.com/pac4j/undertow-pac4j) • [Lagom](https://github.com/pac4j/lagom-pac4j) • [Akka HTTP](https://github.com/StackVista/akka-http-pac4j) • [Jooby](https://jooby.io/modules/pac4j) ## Authentication mechanisms: [OpenID Connect](https://www.pac4j.org/docs/clients/openid-connect.html) - [SAML](https://www.pac4j.org/docs/clients/saml.html) - [CAS](https://www.pac4j.org/docs/clients/cas.html) - [OAuth](https://www.pac4j.org/docs/clients/oauth.html) - [HTTP](https://www.pac4j.org/docs/clients/http.html) - [Kerberos](https://www.pac4j.org/docs/clients/kerberos.html) - [OpenID4VP (EUDI wallet, eIDAS 2.0)](https://www.pac4j.org/docs/clients/openid4vp.html) [LDAP](https://www.pac4j.org/docs/authenticators/ldap.html) - [SQL](https://www.pac4j.org/docs/authenticators/sql.html) - [JWT](https://www.pac4j.org/docs/authenticators/jwt.html) - [MongoDB](https://www.pac4j.org/docs/authenticators/mongodb.html) - [IP address](https://www.pac4j.org/docs/authenticators/ip.html) - [REST API](https://www.pac4j.org/docs/authenticators/rest.html) ## Authorization mechanisms: [Roles](https://www.pac4j.org/docs/authorizers/profile-authorizers.html#1-roles) - [Anonymous/remember-me/(fully) authenticated](https://www.pac4j.org/docs/authorizers/profile-authorizers.html#2-authentication-levels) - [Profile type, attribute](https://www.pac4j.org/docs/authorizers/profile-authorizers.html#3-others) [CORS](https://www.pac4j.org/docs/matchers.html#3-cors) - [CSRF](https://www.pac4j.org/docs/authorizers/web-authorizers.html#1-csrf) - [Security headers](https://www.pac4j.org/docs/matchers.html#4-securityheaders) - [IP address, HTTP method](https://www.pac4j.org/docs/authorizers/web-authorizers.html#2-others) ## Advanced mechanisms: [OpenID Federation](https://www.pac4j.org/docs/clients/openid-connect-federation.html) - [OpenID for Verifiable Presentations (EUDI wallet, eIDAS 2.0)](https://www.pac4j.org/docs/clients/openid4vp.html) --- ## Use of AI This project is developed using various AI tools across multiple areas, including development, testing, and documentation. ## Versions The latest released version is the [](https://repo1.maven.org/maven2/org/pac4j/pac4j-core/). The [next version](https://www.pac4j.org/docs/next-version.html) is under development. Read the [documentation](https://www.pac4j.org/docs/index.html) for more information. ## Need help? You can use the [mailing lists](https://www.pac4j.org/mailing-lists.html) or the [commercial support](https://www.pac4j.org/commercial-support.html). ## Supported by *The CAS and pac4j consulting company* ) *NLnet foundation*

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Javaauthenticationauthorizationcasdropwizard

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category后端框架
PricingOpen source

> Related tools

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架