cas服务器搭建后的调整

server.xml中配置
<Connector port="9443" protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="D:\netzbook\apache-tomcat-8.5.39\server.keystore" keystorePass="tomcat"
/>

webapps\cas\WEB-INF\classes\application.properties
# 加上账号密码
cas.authn.accept.users=admin::admin12345
# 加上下面的语句,否则会出现找不到服务
cas.tgc.secure=false
cas.serviceRegistry.initFromJson=true
# 不允许使用CAS来认证您访问的目标应用
webapps\cas\WEB-INF\classes\services\HTTPSandIMAPS-10000001.json
{
"@class" : "org.apereo.cas.services.RegexRegisteredService",
"serviceId" : "^(https|imaps|http)://.*",
"name" : "HTTPS and IMAPS",
"id" : 10000001,
"description" : "This service definition authorizes all application urls that support HTTPS and IMAPS protocols.",
"evaluationOrder" : 10000
}

上一篇:TunesKit Video Repair for mac(视频修复工具)


下一篇:Linux系统出现hung_task_timeout_secs和blocked for more than 120 seconds的解决方法