我想为CAS Apereo版本cas-overlay-template-6.0启用REST服务(在Ubuntu 16.04上)
我已完成以下步骤:
第1步:为REST API添加编译以构建build.gradle文件
root@ubuntu16:~/cas-overlay-template-6.0# nano build.gradle
And add two line below under dependencies clock
compile "org.apereo.cas:cas-server-support-rest:6.0.0"
compile "org.apereo.cas:cas-server-support-rest-services:6.0.0"
第2步:清理构建
root@ubuntu16:~/cas-overlay-template-6.0# ./build.sh clean
第3步:再次构建源代码
root@ubuntu16:~/cas-overlay-template-6.0# ./build.sh run
但是在第3步中,出现了这样的错误。
CAS is configured to accept a static list of credentials for authentication. While this is generally useful for demo purposes,it is STRONGLY recommended that you DISABLE this authentication method (by setting 'cas.authn.accept.users' to a blank value) and switch to a mode that is more suitable for production.>
2019-12-30 01:17:55,465 WARN [org.apereo.cas.config.support.authentication.acceptUsersAuthenticationEventExecutionPlanconfiguration] - <>
2019-12-30 01:17:55,806 INFO [org.apereo.cas.config.CasPersonDirectoryConfiguration] - <Found and added static attributes [[email]] to the list of candidate attribute repositories>
2019-12-30 01:17:59,004 WARN [org.apereo.cas.web.CasWebApplicationContext] - <Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'registeredServiceResourceRestController' defined in class path resource [org/apereo/cas/support/rest/config/RestServicesConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.support.rest.RegisteredServiceResource]: Factory method 'registeredServiceResourceRestController' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: No attribute name is defined to enforce authorization when adding services via CAS REST APIs. This is likely due to misconfiguration in CAS settings where the attribute name definition is absent>
我不知道什么是冤屈的? 请帮助我启用REST服务。 预先谢谢你。