Skip to content
P

pac4j

Security engine for Java (authentication, authorization, multi frameworks)…

by pac4jFree

#1323in Developer Tools
0In stores

Description

pac4j is an open-source security engine for Java applications, covering authentication and authorisation with OpenID Connect, SAML, CAS, OAu…

Highlights

  • OpenID Connect, SAML, CAS, OAuth and JWT
  • One security model across Java frameworks
  • Spring Boot setup in one configuration class
  • Roles, CORS, CSRF and security headers
  • Apache 2.0 licensed

Ratings & Reviews

No ratings yet

Be the first to rate pac4j.

People also visit

C

Cas

Apereo CAS - Identity & Single Sign On for all earthlings and beyond

Utilities
Launch
K

Keycloak

Comprehensive open source identity management solution offering single sign-on

Developer Tools
Launch
J

Java Cas Client

Apereo Java CAS Client

Utilities
Launch
O

Oauth4webapi

Low-Level OAuth 2 / OpenID Connect Client API for JavaScript Runtimes

Developer Tools
Launch
A

Auth.js

Authentication for the Web

Developer Tools
Launch
Q

quarkus-security

Quarkus security implementation patterns: JWT and OIDC authentication

AI Skills
Get

pac4j FAQ

What is pac4j?

A security engine for Java applications that handles authentication and authorisation.

Which sign-in protocols does it support?

OpenID Connect, SAML, CAS, OAuth, HTTP, LDAP, SQL, JWT, MongoDB, IP address, Kerberos and REST API, according to its list of mechanisms.

Which frameworks does it work with?

Spring Web MVC and Spring WebFlux, Jakarta EE, Play, Vert.x, Spark Java, Jooby, JAX-RS, Dropwizard, Javalin, Undertow, Ratpack, http4s and Shiro.

What Java version do I need?

Java 17 or later. The older release lines support Java 8 and 11.

How do I secure a Spring Boot app?

Extend Pac4jSecurityConfig, define a Config with a client such as OidcClient, and add the security interceptor to the paths you want protected.

Is it free?

Yes. It is Apache 2.0 licensed and has been open source since 2012. Commercial support is also offered.

What are the best pac4j alternatives?

Popular alternatives to pac4j include Keycloak, Oauth4webapi and Auth.js. See all pac4j alternatives

Developer Stuff

Badges