MCPcopy Index your code
hub / github.com/bujiio/buji-pac4j

github.com/bujiio/buji-pac4j @buji-pac4j-9.1.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release buji-pac4j-9.1.1 ↗ · + Follow
56 symbols 129 edges 11 files 23 documented · 41% updated 2d ago★ 496

Browse by type

Functions 45 Types & classes 11
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

The buji-pac4j project is a bridge from pac4j to Shiro to push the pac4j security context into the Shiro security context.
It's based on the pac4j security engine. It's available under the Apache 2 license.

buji-pac4j JDK pac4j Shiro Operating philosophy Usage of Lombok Status
version >= 9.1 17 v6 v2.0.2 Bridge only Yes Production ready
version >= 9 17 v6 v1.11 Bridge only Yes Production ready
version >= 8 11 v5 v1.9 Bridge only No Production ready
version >= 6 11 v5 v1.8 Standalone security library No Production ready
version >= 5 8 v4 v1.5 Standalone security library No Production ready

It must be used with a pac4j security library: - Certainly, the javaee-pac4j implementation (which has the same filters as buji-pac4j version <= 7.x) - Or maybe, if you use Spring MVC, the spring-webmvc-pac4j implementation.

While it is always better to directly use a pac4j security library alone, this bridge can be used to keep legacy software and avoid full migration.

Usage

1) Add the required dependencies

2) The bridge is automatically installed

See the configuration that is loaded by default.

3) Install, configure and use the pac4j security library

You must refer to the documentation of the pac4j security library you use: javaee-pac4j (or maybe spring-webmvc-pac4j).

Demo

Shiro demo: buji-pac4j-demo.

Versions

The latest released version is the Maven Central, available in the Maven central repository. The next version is under development.

See the release notes.

See the migration guide as well.

Need help?

You can use the mailing lists or the commercial support.

Core symbols most depended-on inside this repo

Shape

Method 45
Class 11

Languages

Java100%

Modules by API surface

src/test/java/io/buji/pac4j/subject/Pac4jPrincipalTests.java12 symbols
src/main/java/io/buji/pac4j/context/ShiroSessionStore.java10 symbols
src/main/java/io/buji/pac4j/subject/Pac4jPrincipal.java8 symbols
src/main/java/io/buji/pac4j/realm/Pac4jRealm.java6 symbols
src/main/java/io/buji/pac4j/token/Pac4jToken.java4 symbols
src/main/java/io/buji/pac4j/profile/ShiroProfileManager.java4 symbols
src/main/java/org/pac4j/framework/adapter/FrameworkAdapterImpl.java3 symbols
src/main/java/io/buji/pac4j/env/Pac4jIniEnvironment.java3 symbols
src/test/java/io/buji/pac4j/ini/IniTests.java2 symbols
src/main/java/io/buji/pac4j/util/ShiroHelper.java2 symbols
src/main/java/io/buji/pac4j/subject/Pac4jSubjectFactory.java2 symbols

For agents

$ claude mcp add buji-pac4j \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page