Java Authorization

Open-source Java projects categorized as Authorization

Missing quite a few other open source projects in this space like SuperTokens (https://supertokens.com) and Keycloak.

Top 23 Java Authorization Projects

Authorization
  1. cas

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

    Project mention: How to secure a Java client application with CAS (using Spring Boot) | dev.to | 2026-10-11

    CAS can mean two things: the open source single sign-on server maintained by the Apereo foundation, or the Central Authentication Service protocol. Here, we'll use the CAS protocol to connect our Java application to a CAS server.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. jCasbin

    An authorization library that supports access control models like ACL, RBAC, ABAC in Java

  4. pac4j

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

    Project mention: How to secure a JAX-RS client application with OIDC (using pac4j) | dev.to | 2026-10-01

    The jax-rs-pac4j library (like pac4j) supports both. It protects resources with pac4j clients through annotations, on Jersey or RESTEasy (JAX-RS is now called Jakarta REST).

  5. akto

    Akto is the fastest growing AI Security platform for your teams to secure AI agents, MCPs, LLMs, Agent skills, Gen AI apps in your organization.

  6. athenz

    Open source platform for X.509 certificate based service authentication and fine grained access control in dynamic infrastructures. Athenz supports provisioning and configuration (centralized authorization) use cases as well as serving/runtime (decentralized authorization) use cases.

    Project mention: Open source platform for X.509 service authentication and fine grained access | news.ycombinator.com | 2026-07-08
  7. OpenAM

    OpenAM is an open-source access management solution for identity authentication, authorization, and federation. It provides single sign-on, adaptive authentication, and centralized policy control, enabling secure access to web, mobile, and cloud applications

    Project mention: How to Protect Model Context Protocol (MCP) Servers with OpenAM and OpenIG | dev.to | 2025-12-02

    In this article, we will deploy a simple MCP server developed based on Spring AI and close it with the OpenIG authorization gateway. The OpenAM authentication service will be responsible for authentication.

  8. product-is

    Welcome to the WSO2 Identity Server source code! For info on working with the WSO2 Identity Server repository and contributing code, click the link below.

  9. sureness

    Dromara Sureness A efficient security framework focus on protection of API.

  10. buji-pac4j

    Bridge from the pac4j security library to Shiro

    Project mention: How to secure a Shiro client application with CAS (using pac4j) | dev.to | 2026-10-07

    This is the role of buji-pac4j. But there is a distinction to make: buji-pac4j is a bridge, not an authentication implementation. It transfers the pac4j profile to the Shiro subject, but it cannot start a CAS login on its own.

  11. keycloak-restrict-client-auth

    A Keycloak extension to restrict user authorization on clients

  12. play-pac4j

    Security library for Play framework 2/3 in Java and Scala: OpenID Connect, SAML2, CAS, OAuth, LDAP, JWT...

    Project mention: How to secure a Play client application with SAML (using pac4j) | dev.to | 2026-10-02

    In a Play application, we want to protect actions while keeping the usual routes and controllers. The play-pac4j library lets us do that with a @Secure annotation, a CallbackController and a LogoutController.

  13. spring-security-pac4j

    Bridge from the pac4j security library to Spring Security (reactive)

    Project mention: How to secure a Spring Security client application with OIDC (using pac4j) | dev.to | 2026-10-08

    The spring-security-pac4j bridge does this. It transfers the pac4j profile into the Spring Security context; it does not perform authentication itself. Adding the bridge alone will not give you an OIDC login.

  14. spark-pac4j

    Security library for Sparkjava: OpenID Connect, SAML2, CAS, OAuth, LDAP, JWT...

    Project mention: How to secure a Spark Java client application with OpenID Connect (OIDC) using pac4j | dev.to | 2026-09-28

    The spark-pac4j library gives us a SecurityFilter for these checks, a CallbackRoute for the return from the remote OIDC provider and a LogoutRoute to perform local and/or central logout. We can use them with OpenID Connect, whether your provider is Keycloak, Google, Microsoft Entra ID, Okta or another OIDC server.

  15. spring-webmvc-pac4j

    Security library for Spring Web MVC: OpenID Connect, SAML2, CAS, OAuth, LDAP, JWT...

    Project mention: EUDI wallets with OpenID4VP in action (2/2): on another device | dev.to | 2026-11-03

    This is a plain Spring Boot web application, with spring-webmvc-pac4j as the pac4j implementation. Java 17 or later and Maven are enough.

  16. vertx-pac4j

    Security library for Vert.x: OpenID Connect, SAML2, CAS, OAuth, LDAP, JWT...

    Project mention: How to secure a Vert.x client application with CAS (using pac4j) | dev.to | 2026-09-29

    Let's connect a Vert.x Web application to a CAS server. We'll use the vertx-pac4j library to add three handlers to our router: SecurityHandler, CallbackHandler and LogoutHandler.

  17. OpenIG

    OpenIG is an open-source identity gateway (reverse-proxy) that secures, routes, and manages web traffic. It enables authentication, access control, and integration with identity providers, delivering single sign-on and API security for web and cloud applications.

    Project mention: How to Protect Model Context Protocol (MCP) Servers with OpenAM and OpenIG | dev.to | 2025-12-02

    In this article, we will deploy a simple MCP server developed based on Spring AI and close it with the OpenIG authorization gateway. The OpenAM authentication service will be responsible for authentication.

  18. security

    Jakarta Security (by jakartaee)

  19. jee-pac4j

    Security library for J2E: OpenID Connect, SAML2, CAS, OAuth, LDAP, JWT...

    Project mention: How to secure a Shiro client application with CAS (using pac4j) | dev.to | 2026-10-07

    jakartaee-pac4j, servlet filters that Shiro can map on URLs like its own filters, used in this guide

  20. huawei-account-demo

    Sample code for quickly integrate Huawei ID. HUAWEI Account Kit provides developers with simple, secure, and quick sign-in and authorization functions.

  21. jax-rs-pac4j

    Security library for JAX-RS, Jersey and RESTEasy

    Project mention: How to secure a JAX-RS client application with OIDC (using pac4j) | dev.to | 2026-10-01

    The jax-rs-pac4j library (like pac4j) supports both. It protects resources with pac4j clients through annotations, on Jersey or RESTEasy (JAX-RS is now called Jakarta REST).

  22. jwtenizr

    JWT Token Dispenser

  23. undertow-pac4j

    Security library for Undertow: OpenID Connect, SAML2, CAS, OAuth, LDAP, JWT...

    Project mention: How to secure an Undertow client application with OIDC (using pac4j) | dev.to | 2026-09-30

    You can connect an Undertow application to an OpenID Connect provider. You just need to use the undertow-pac4j library to add three handlers to your PathHandler: SecurityHandler, CallbackHandler and LogoutHandler.

  24. biscuit-java

    Java implementation of the Biscuit authentication and authorization token

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Java Authorization discussion

Log in or Post with

Java Authorization related posts

  • How to secure a Java client application with CAS (using Spring Boot)

    1 project | dev.to | 11 Oct 2026
  • How to secure a Shiro client application with CAS (using pac4j)

    4 projects | dev.to | 7 Oct 2026
  • How to secure a JAX-RS client application with OIDC (using pac4j)

    5 projects | dev.to | 1 Oct 2026
  • How to secure a Vert.x client application with CAS (using pac4j)

    3 projects | dev.to | 29 Sep 2026
  • How to secure a Spark Java client application with OpenID Connect (OIDC) using pac4j

    3 projects | dev.to | 28 Sep 2026
  • Open source platform for X.509 service authentication and fine grained access

    1 project | news.ycombinator.com | 8 Jul 2026
  • [Hands-on] Testing Separate Ports in Athenz ZTS

    1 project | dev.to | 31 Mar 2026
  • A note from our sponsor - SaaSHub
    www.saashub.com | 14 Nov 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source Authorization projects in Java? This list will help you:

# Project Stars
1 cas 11,393
2 jCasbin 2,652
3 pac4j 2,538
4 akto 1,547
5 athenz 1,017
6 OpenAM 903
7 product-is 888
8 sureness 874
9 buji-pac4j 499
10 keycloak-restrict-client-auth 443
11 play-pac4j 414
12 spring-security-pac4j 279
13 spark-pac4j 163
14 spring-webmvc-pac4j 139
15 vertx-pac4j 135
16 OpenIG 93
17 security 66
18 jee-pac4j 59
19 huawei-account-demo 57
20 jax-rs-pac4j 56
21 jwtenizr 49
22 undertow-pac4j 43
23 biscuit-java 39

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com