其他分享
首页 > 其他分享> > cas服务器搭建后的调整

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
}

标签:10000001,secure,cas,webapps,服务器,true,IMAPS,搭建
来源: https://www.cnblogs.com/mark200106/p/15796275.html