pac4j 与 Cas Apereo 6.6.15 应该有什么依赖关系?

问题描述 投票:0回答:1

我正在尝试配置 cas apereo 6.6.15,但在 pac4j 依赖项方面遇到问题。对于 cas 6.6.15 应使用什么版本的 pac4j?

我在 build.gradle 中的依赖项是: 实现“org.apereo.cas:cas-server-support-pac4j-authentication:${project.'cas.version'}”
实现“org.apereo.cas:cas-server-support-pac4j-webflow:$ {project.'cas.version'}” 实现“org.apereo.cas:cas-server-support-pac4j-core:$ {project.'cas.version'}”

我正在实现的课程是:

公共类 DeleatedClientAuthenticationHandler 扩展 AbstractPac4jAuthenticationHandler{ ... }

./gradlew clean build 时存在的错误是:

任务:编译Java失败 /opt/workspace/cas-overlay-template/src/main/java/support/pac4j/authentication/handler/support/DeleatedClientAuthenticationHandler.java:27:错误:找不到符号 导入 org.apereo.cas.authentication.principal.ClientCredential; ^ 符号:类 ClientCredential 位置:包 org.apereo.cas.authentication.principal /opt/workspace/cas-overlay-template/src/main/java/support/pac4j/authentication/handler/support/DeleatedClientAuthenticationHandler.java:31:错误:找不到符号 导入 org.apereo.cas.authentication.principal.provision.DeleeratedClientUserProfileProvisioner; ^ 符号:DelegateClientUserProfileProvisioner 类 位置:包 org.apereo.cas.authentication.principal.provision /opt/workspace/cas-overlay-template/src/main/java/support/pac4j/authentication/handler/support/DeleatedClientAuthenticationHandler.java:48:错误:找不到符号 私有最终 DeleatedClientUserProfileProvisioner profileProvisioner; ^ 符号:DelegateClientUserProfileProvisioner 类 位置:类 DeleatedClientAuthenticationHandler /opt/workspace/cas-overlay-template/src/main/java/support/pac4j/authentication/handler/support/DeleatedClientAuthenticationHandler.java:61:错误:找不到符号 最终 DeleatedClientUserProfileProvisioner profileProvisioner, ^ 符号:DelegateClientUserProfileProvisioner 类 位置:类 DeleatedClientAuthenticationHandler /opt/workspace/cas-overlay-template/src/main/java/support/pac4j/authentication/handler/support/DeleatedClientAuthenticationHandler.java:74:错误:找不到符号 protected void preFinalizeAuthenticationHandlerResult(最终的 ClientCredential 凭证、最终的主体主体、最终的 CommonProfile 配置文件、最终的 BaseClient 客户端) { ^ 符号:类 ClientCredential 位置:类 DeleatedClientAuthenticationHandler 5 个错误

FAILURE:构建失败并出现异常。

java cas graylog pac4j apereo
1个回答
0
投票

对于 CAS v6.6.15,您应该使用 pac4j v5.4.6 (https://github.com/apereo/cas/blob/v6.6.15/gradle.properties#L258)。

© www.soinside.com 2019 - 2024. All rights reserved.