1.3.x版本后。shiro接入pac4j

pac4j是一个支持多种支持多种协议的身份认证的Java客户端。

它有一个非常简单和统一的API以支持以下这6个客户端认证机制:

OAuth (1.0 & 2.0)

CAS (1.0, 2.0, SAML, logout & proxy)

HTTP (form & basic auth authentications)

OpenID

SAML (2.0)

Google App Engine UserService.

OpenID Connect 1.0

提供 7 种库实现用于不同环境:

the CAS server (using the cas-server-support-pac4j library)

the Play 2.x framework (using the play-pac4j_java and play-pac4j_scala libraries)

any basic J2E environment (using the j2e-pac4j library)

the Apache Shiro library (using the buji-pac4j library)

the Spring Security library (using the spring-security-pac4j library)

the Ratpack JVM toolkit (using the ratpack-pac4j module)

the Vertx framework (using the vertx-pac4j module).