From 2195dcdf4d208c9b279afa0ac1d2214b053db1d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=9C=E7=9A=87=E5=A4=A7=E5=8F=94?= Date: Thu, 2 Jul 2020 19:05:50 +0800 Subject: [PATCH] docker --- cas-server-webapp/Dockerfile => Dockerfile | 3 +- build.sh | 13 + cas-server-core/pom.xml | 183 +++-- .../inspektrThrottledSubmissionContext.xml | 28 +- cas-server-support-jdbc/pom.xml | 8 +- ...UsernamePasswordAuthenticationHandler.java | 26 +- cas-server-webapp/pom.xml | 513 +++++++------- .../src/main/webapp/WEB-INF/cas-servlet.xml | 4 +- .../src/main/webapp/WEB-INF/cas.properties | 6 + .../webapp/WEB-INF/deployerConfigContext.xml | 27 +- .../applicationContext.xml | 4 +- .../argumentExtractorsConfiguration.xml | 4 +- .../auditTrailContext.xml | 30 +- .../WEB-INF/spring-configuration/filters.xml | 2 +- .../propertyFileConfigurer.xml | 11 +- .../spring-configuration/securityContext.xml | 4 +- .../ticketGrantingTicketCookieGenerator.xml | 2 +- .../spring-configuration/ticketRegistry.xml | 2 +- .../uniqueIdGenerators.xml | 2 +- .../warnCookieGenerator.xml | 2 +- .../clearpass-configuration.xml | 106 --- .../lppe-configuration.xml | 147 ---- .../unused-spring-configuration/mbeans.xml | 53 -- .../src/main/webapp/WEB-INF/view/views.xml | 2 +- cas.properties | 111 +++ pom.xml | 640 ++++++------------ 26 files changed, 757 insertions(+), 1176 deletions(-) rename cas-server-webapp/Dockerfile => Dockerfile (64%) create mode 100755 build.sh delete mode 100644 cas-server-webapp/src/main/webapp/WEB-INF/unused-spring-configuration/clearpass-configuration.xml delete mode 100644 cas-server-webapp/src/main/webapp/WEB-INF/unused-spring-configuration/lppe-configuration.xml delete mode 100644 cas-server-webapp/src/main/webapp/WEB-INF/unused-spring-configuration/mbeans.xml create mode 100644 cas.properties diff --git a/cas-server-webapp/Dockerfile b/Dockerfile similarity index 64% rename from cas-server-webapp/Dockerfile rename to Dockerfile index 357a625..735397a 100644 --- a/cas-server-webapp/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ FROM dockerhub.test.wacai.info/library/tomcat:8.0.41 RUN rm -rf /data/program/tomcat8/webapps/* -COPY cas-server-webapp/target/cas.war /data/program/tomcat8/webapps/cas.war \ No newline at end of file +COPY cas-server-webapp/src/main/webapp/WEB-INF/cas.properties /data/config/ +COPY cas-server-webapp/target/cas.war /data/program/tomcat8/webapps/cas.war diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..94ac7df --- /dev/null +++ b/build.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +if [ "$1" = 'mvn' ]; then + mvn clean package -pl cas-server-webapp -am -DskipTests -T 4C +fi + +name='cas-server:0.0.1' +repo_tag="dockerhub.test.wacai.info/donghuang/$name" +docker build -t "$name" -t "$repo_tag" . + +if [ "$1" = 'push' ]; then + docker push "$repo_tag" +fi diff --git a/cas-server-core/pom.xml b/cas-server-core/pom.xml index 95c71c4..b8dda4a 100644 --- a/cas-server-core/pom.xml +++ b/cas-server-core/pom.xml @@ -17,26 +17,33 @@ ~ specific language governing permissions and limitations ~ under the License. --> + - - - com.wacai.loan - cas-dev - 3.5.2-SNAPSHOT - - 4.0.0 + + com.wacai.loan + cas-dev + 3.5.2-SNAPSHOT + + + 4.0.0 com.wacai.loan - cas-server-core - Jasig CAS Core - CAS core + cas-server-core + Jasig CAS Core + CAS core - - log4j - log4j - ${log4j.version} - jar - compile + + javax.servlet + servlet-api + provided + + + log4j + log4j + ${log4j.version} javax.mail @@ -56,116 +63,85 @@ - com.github.inspektr inspektr-audit - compile - org.jasig.service.persondir person-directory-impl - compile - commons-codec commons-codec - compile - jdom jdom 1.0 - compile - org.springframework spring-orm - compile - org.springframework spring-jdbc - compile - org.springframework spring-core - compile - org.springframework spring-beans - compile - org.springframework spring-webmvc - compile - org.springframework spring-context-support - compile - org.springframework spring-tx - org.springframework spring-context - org.springframework.security spring-security-core - compile - - - org.hsqldb - hsqldb - 2.0.0 - test - - - - org.hibernate - hibernate-validator - test - - - - org.hibernate - hibernate-core - compile - - + + org.hsqldb + hsqldb + 2.0.0 + test + + + org.hibernate + hibernate-validator + test + + + org.hibernate + hibernate-core + org.hibernate hibernate-entitymanager test - javassist javassist test 3.12.1.GA - org.apache.santuario xmlsec @@ -178,78 +154,77 @@ - - org.opensaml - opensaml - 2.5.1-1 - compile - - - org.slf4j - log4j-over-slf4j - - - joda-time - joda-time - - + org.opensaml + opensaml + 2.5.1-1 + + + org.slf4j + log4j-over-slf4j + + + joda-time + joda-time + + - - javax.xml - xmldsig - 1.0 - compile + javax.xml + xmldsig + 1.0 - org.perf4j perf4j ${perf4j.version} log4jonly - compile - org.springframework.webflow spring-webflow - compile - commons-jexl commons-jexl runtime - jar - commons-io commons-io ${commons.io.version} - compile - jar - joda-time joda-time - compile - - org.opensymphony.quartz - quartz - 1.6.1 - test - jar + org.mockito + mockito-all + ${mockito.version} + test - - com.github.inspektr - inspektr-support-spring - test + org.springframework + spring-test + test - + + junit + junit + 4.12 + test + + + org.opensymphony.quartz + quartz + 1.6.1 + test + + + com.github.inspektr + inspektr-support-spring + test + + diff --git a/cas-server-core/src/test/resources/inspektrThrottledSubmissionContext.xml b/cas-server-core/src/test/resources/inspektrThrottledSubmissionContext.xml index b35fe06..3bdb686 100644 --- a/cas-server-core/src/test/resources/inspektrThrottledSubmissionContext.xml +++ b/cas-server-core/src/test/resources/inspektrThrottledSubmissionContext.xml @@ -24,7 +24,7 @@ xmlns:aop="http://www.springframework.org/schema/aop" xmlns:p="http://www.springframework.org/schema/p" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd - http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.1.xsd"> + http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd"> @@ -54,28 +54,28 @@ - + - + - + - + - + - + - + @@ -87,25 +87,25 @@ - + - + - + - + - + - + diff --git a/cas-server-support-jdbc/pom.xml b/cas-server-support-jdbc/pom.xml index 97ef4e1..1f8fe57 100644 --- a/cas-server-support-jdbc/pom.xml +++ b/cas-server-support-jdbc/pom.xml @@ -1,3 +1,4 @@ + + + - - - com.wacai.loan - cas-dev - 3.5.2-SNAPSHOT - - 4.0.0 + 4.0.0 com.wacai.loan cas-server-webapp - war - Jasig CAS Web Application + war + Jasig CAS Web Application - - - + com.wacai.loan - cas-server-support-jdbc - ${project.version} - jar - - - mysql - mysql-connector-java - 5.1.6 - - - com.alibaba - druid - 1.1.2 - - - org.mockito - mockito-all - ${mockito.version} - test - jar - - - com.github.inspektr - inspektr-support-spring - runtime - + cas-dev + 3.5.2-SNAPSHOT + - - org.springframework.security - spring-security-core - compile - + + + javax.servlet + servlet-api + provided + + + com.wacai.loan + cas-server-support-jdbc + ${project.version} + + + mysql + mysql-connector-java + 5.1.6 + + + com.alibaba + druid + 1.1.2 + + + org.aspectj + aspectjrt + + + org.aspectj + aspectjweaver + + + org.mockito + mockito-all + ${mockito.version} + test + + + org.springframework + spring-test + test + + + junit + junit + 4.12 + test + + + com.github.inspektr + inspektr-support-spring + runtime + + + org.springframework.security + spring-security-core + + + org.springframework.security + spring-security-web + + + org.springframework.security + spring-security-cas + runtime + + + org.springframework.security + spring-security-config + runtime + + + org.springframework + spring-aop + + + org.jasig.cas.client + cas-client-core + 3.2.1 + + + javax.servlet + servlet-api + + + + + org.springframework + spring-context-support + + + org.springframework + spring-expression + ${spring.version} + + + org.opensymphony.quartz + quartz + 1.6.1 + + + net.sf.spring-json + spring-json + 1.3.1 + runtime + + + net.sf.sojo + sojo-optional + + + org.springframework + spring + + + org.springframework + spring-mock + + + org.springframework + spring-webmvc + + + cglib + cglib-full + + + + + cglib + cglib-nodep + 2.2.2 + runtime + + + net.sf.sojo + sojo + 1.0.5 + + + commons-attributes + commons-attributes-api + + + commons-logging + commons-logging + + + + + javax.servlet + jstl + 1.1.2 + + + taglibs + standard + 1.1.2 + + + ognl + ognl + 2.7.3 + runtime + + + org.hibernate + hibernate-validator + runtime + + - - org.springframework.security - spring-security-web - compile - + + + + org.apache.maven.plugins + maven-war-plugin + + cas + + WEB-INF/cas.properties + + + + ${basedir}/src/main/webapp/WEB-INF + true + WEB-INF + + **/web.xml + + + + + - - org.springframework.security - spring-security-cas - runtime - - - - org.springframework.security - spring-security-config - runtime - - - - org.springframework - spring-aop - - - - org.jasig.cas.client - cas-client-core - 3.2.1 - - - javax.servlet - servlet-api - - - - - - org.springframework - spring-context-support - compile - - - - org.springframework - spring-expression - ${spring.version} - compile - - - - org.opensymphony.quartz - quartz - 1.6.1 - jar - - - - net.sf.spring-json - spring-json - 1.3.1 - runtime - - - net.sf.sojo - sojo-optional - - - org.springframework - spring - - - org.springframework - spring-mock - - - org.springframework - spring-webmvc - - - cglib - cglib-full - - - - - cglib - cglib-nodep - 2.2.2 - runtime - - - - net.sf.sojo - sojo - 1.0.5 - - - commons-attributes - commons-attributes-api - - - commons-logging - commons-logging - - - - - - javax.servlet - jstl - 1.1.2 - jar - - - - taglibs - standard - 1.1.2 - jar - - - - ognl - ognl - 2.7.3 - runtime - - - - org.hibernate - hibernate-validator - runtime - - - - - - - org.apache.maven.plugins - maven-war-plugin - - cas - - - ${basedir}/src/main/webapp/WEB-INF - true - WEB-INF - - **/web.xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - org.eclipse.m2e - lifecycle-mapping - 1.0.0 - - - - - - org.jasig.maven - maven-translate-plugin - [0.0.1,) - - check - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.jasig.maven + maven-translate-plugin + [0.0.1,) + + check + + + + + + + + + + + + + diff --git a/cas-server-webapp/src/main/webapp/WEB-INF/cas-servlet.xml b/cas-server-webapp/src/main/webapp/WEB-INF/cas-servlet.xml index 06defc4..fc97916 100644 --- a/cas-server-webapp/src/main/webapp/WEB-INF/cas-servlet.xml +++ b/cas-server-webapp/src/main/webapp/WEB-INF/cas-servlet.xml @@ -127,7 +127,7 @@ - + @@ -163,7 +163,7 @@ - + diff --git a/cas-server-webapp/src/main/webapp/WEB-INF/cas.properties b/cas-server-webapp/src/main/webapp/WEB-INF/cas.properties index b78ebc3..4f1862f 100644 --- a/cas-server-webapp/src/main/webapp/WEB-INF/cas.properties +++ b/cas-server-webapp/src/main/webapp/WEB-INF/cas.properties @@ -102,4 +102,10 @@ host.name=cas01.example.org # log4j refresh interval in millis # log4j.refresh.interval=60000 +# JDBC +datasource.url=jdbc:mysql://172.16.68.196/cas?useUnicode=true&characterEncoding=utf8 +datasource.username=root +datasource.password=wacai.com +password-query-sql=select password from cas_user where username = ? +password-encode-method=MD5 diff --git a/cas-server-webapp/src/main/webapp/WEB-INF/deployerConfigContext.xml b/cas-server-webapp/src/main/webapp/WEB-INF/deployerConfigContext.xml index 1f10542..9324d9c 100644 --- a/cas-server-webapp/src/main/webapp/WEB-INF/deployerConfigContext.xml +++ b/cas-server-webapp/src/main/webapp/WEB-INF/deployerConfigContext.xml @@ -34,24 +34,20 @@ +--> + http://www.springframework.org/schema/security/spring-security.xsd"> - - - - - - - + + + - + - + @@ -157,7 +153,6 @@ - + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> + This file lets CAS know where you've stored the cas.properties file which details some of the configuration options that are specific to your environment. You can specify the location of the file here. You may wish to place the file outside @@ -30,6 +30,7 @@ can be moved between tiers without modification. - + + + diff --git a/cas-server-webapp/src/main/webapp/WEB-INF/spring-configuration/securityContext.xml b/cas-server-webapp/src/main/webapp/WEB-INF/spring-configuration/securityContext.xml index bc56277..80a452a 100644 --- a/cas-server-webapp/src/main/webapp/WEB-INF/spring-configuration/securityContext.xml +++ b/cas-server-webapp/src/main/webapp/WEB-INF/spring-configuration/securityContext.xml @@ -23,8 +23,8 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:sec="http://www.springframework.org/schema/security" - xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd - http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.1.xsd"> + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd + http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd"> Security configuration for services management and other sensitive areas of CAS. diff --git a/cas-server-webapp/src/main/webapp/WEB-INF/spring-configuration/ticketGrantingTicketCookieGenerator.xml b/cas-server-webapp/src/main/webapp/WEB-INF/spring-configuration/ticketGrantingTicketCookieGenerator.xml index 5c2eca0..e36cf98 100644 --- a/cas-server-webapp/src/main/webapp/WEB-INF/spring-configuration/ticketGrantingTicketCookieGenerator.xml +++ b/cas-server-webapp/src/main/webapp/WEB-INF/spring-configuration/ticketGrantingTicketCookieGenerator.xml @@ -22,7 +22,7 @@ + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> Defines the cookie that stores the TicketGrantingTicket. You most likely should never modify these (especially the "secure" property). You can change the name if you want to make it harder for people to guess. diff --git a/cas-server-webapp/src/main/webapp/WEB-INF/spring-configuration/ticketRegistry.xml b/cas-server-webapp/src/main/webapp/WEB-INF/spring-configuration/ticketRegistry.xml index 9307d5f..fdeaa79 100644 --- a/cas-server-webapp/src/main/webapp/WEB-INF/spring-configuration/ticketRegistry.xml +++ b/cas-server-webapp/src/main/webapp/WEB-INF/spring-configuration/ticketRegistry.xml @@ -22,7 +22,7 @@ + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> Configuration for the default TicketRegistry which stores the tickets in-memory and cleans them out as specified intervals. diff --git a/cas-server-webapp/src/main/webapp/WEB-INF/spring-configuration/uniqueIdGenerators.xml b/cas-server-webapp/src/main/webapp/WEB-INF/spring-configuration/uniqueIdGenerators.xml index f30d941..ace3d91 100644 --- a/cas-server-webapp/src/main/webapp/WEB-INF/spring-configuration/uniqueIdGenerators.xml +++ b/cas-server-webapp/src/main/webapp/WEB-INF/spring-configuration/uniqueIdGenerators.xml @@ -23,7 +23,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:util="http://www.springframework.org/schema/util" - xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd"> Controls the generation of the unique identifiers for tickets. You most likely do not need to modify these. Though you may need to modify diff --git a/cas-server-webapp/src/main/webapp/WEB-INF/spring-configuration/warnCookieGenerator.xml b/cas-server-webapp/src/main/webapp/WEB-INF/spring-configuration/warnCookieGenerator.xml index 2f0a404..0c3f48d 100644 --- a/cas-server-webapp/src/main/webapp/WEB-INF/spring-configuration/warnCookieGenerator.xml +++ b/cas-server-webapp/src/main/webapp/WEB-INF/spring-configuration/warnCookieGenerator.xml @@ -22,7 +22,7 @@ + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> This Spring Configuration file describes the cookie used to store the WARN parameter so that a user is warned whenever the CAS service is used. You would modify this if you wanted to change the cookie path or the name. diff --git a/cas-server-webapp/src/main/webapp/WEB-INF/unused-spring-configuration/clearpass-configuration.xml b/cas-server-webapp/src/main/webapp/WEB-INF/unused-spring-configuration/clearpass-configuration.xml deleted file mode 100644 index 181a49d..0000000 --- a/cas-server-webapp/src/main/webapp/WEB-INF/unused-spring-configuration/clearpass-configuration.xml +++ /dev/null @@ -1,106 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - clearPassController - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/cas-server-webapp/src/main/webapp/WEB-INF/unused-spring-configuration/lppe-configuration.xml b/cas-server-webapp/src/main/webapp/WEB-INF/unused-spring-configuration/lppe-configuration.xml deleted file mode 100644 index e149754..0000000 --- a/cas-server-webapp/src/main/webapp/WEB-INF/unused-spring-configuration/lppe-configuration.xml +++ /dev/null @@ -1,147 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/cas-server-webapp/src/main/webapp/WEB-INF/unused-spring-configuration/mbeans.xml b/cas-server-webapp/src/main/webapp/WEB-INF/unused-spring-configuration/mbeans.xml deleted file mode 100644 index f4f13b9..0000000 --- a/cas-server-webapp/src/main/webapp/WEB-INF/unused-spring-configuration/mbeans.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - Configuration for the MBeans to support JMX. - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/cas-server-webapp/src/main/webapp/WEB-INF/view/views.xml b/cas-server-webapp/src/main/webapp/WEB-INF/view/views.xml index 7386c1d..3dce648 100644 --- a/cas-server-webapp/src/main/webapp/WEB-INF/view/views.xml +++ b/cas-server-webapp/src/main/webapp/WEB-INF/view/views.xml @@ -23,7 +23,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:webflow="http://www.springframework.org/schema/webflow-config" xmlns:p="http://www.springframework.org/schema/p" - xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/webflow-config http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.3.xsd"> diff --git a/cas.properties b/cas.properties new file mode 100644 index 0000000..61abfae --- /dev/null +++ b/cas.properties @@ -0,0 +1,111 @@ +# +# Licensed to Jasig under one or more contributor license +# agreements. See the NOTICE file distributed with this work +# for additional information regarding copyright ownership. +# Jasig licenses this file to you under the Apache License, +# Version 2.0 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a +# copy of the License at the following location: +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +## +# Services Management Web UI Security +server.name=http://localhost:8080 +server.prefix=${server.name}/cas +cas.securityContext.serviceProperties.service=${server.prefix}/services/j_acegi_cas_security_check +# Names of roles allowed to access the CAS service manager +cas.securityContext.serviceProperties.adminRoles=ROLE_ADMIN +cas.securityContext.casProcessingFilterEntryPoint.loginUrl=${server.prefix}/login +cas.securityContext.ticketValidator.casServerUrlPrefix=${server.prefix} +# IP address or CIDR subnet allowed to access the /status URI of CAS that exposes health check information +cas.securityContext.status.allowedSubnet=127.0.0.1 + + +cas.themeResolver.defaultThemeName=cas-theme-default +cas.viewResolver.basename=default_views + +## +# Unique CAS node name +# host.name is used to generate unique Service Ticket IDs and SAMLArtifacts. This is usually set to the specific +# hostname of the machine running the CAS node, but it could be any label so long as it is unique in the cluster. +host.name=cas01.example.org + +## +# Database flavors for Hibernate +# +# One of these is needed if you are storing Services or Tickets in an RDBMS via JPA. +# +# database.hibernate.dialect=org.hibernate.dialect.OracleDialect +# database.hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect +# database.hibernate.dialect=org.hibernate.dialect.HSQLDialect + +## +# CAS Logout Behavior +# WEB-INF/cas-servlet.xml +# +# Specify whether CAS should redirect to the specifyed service parameter on /logout requests +# cas.logout.followServiceRedirects=false + +## +# Single Sign-On Session Timeouts +# Defaults sourced from WEB-INF/spring-configuration/ticketExpirationPolices.xml +# +# Maximum session timeout - TGT will expire in maxTimeToLiveInSeconds regardless of usage +# tgt.maxTimeToLiveInSeconds=28800 +# +# Idle session timeout - TGT will expire sooner than maxTimeToLiveInSeconds if no further requests +# for STs occur within timeToKillInSeconds +# tgt.timeToKillInSeconds=7200 + +## +# Service Ticket Timeout +# Default sourced from WEB-INF/spring-configuration/ticketExpirationPolices.xml +# +# Service Ticket timeout - typically kept short as a control against replay attacks, default is 10s. You'll want to +# increase this timeout if you are manually testing service ticket creation/validation via tamperdata or similar tools +# st.timeToKillInSeconds=10 + +## +# Single Logout Out Callbacks +# Default sourced from WEB-INF/spring-configuration/argumentExtractorsConfiguration.xml +# +# To turn off all back channel SLO requests set slo.disabled to true +# slo.callbacks.disabled=false + +## +# Service Registry Periodic Reloading Scheduler +# Default sourced from WEB-INF/spring-configuration/applicationContext.xml +# +# Force a startup delay of 2 minutes. +# service.registry.quartz.reloader.startDelay=120000 +# +# Reload services every 2 minutes +# service.registry.quartz.reloader.repeatInterval=120000 + +## +# Log4j +# Default sourced from WEB-INF/spring-configuration/log4jConfiguration.xml: +# +# It is often time helpful to externalize log4j.xml to a system path to preserve settings between upgrades. +# e.g. log4j.config.location=/etc/cas/log4j.xml +# log4j.config.location=classpath:log4j.xml +# +# log4j refresh interval in millis +# log4j.refresh.interval=60000 + +# JDBC + +datasource.url=jdbc:mysql://172.18.5.36/cas?useUnicode=true&characterEncoding=utf8 +datasource.username=root +datasource.password=wacai.com +password-query-sql=select password from cas_user where username = ? +password-encode-method=MD5 diff --git a/pom.xml b/pom.xml index 71a3355..2d105db 100644 --- a/pom.xml +++ b/pom.xml @@ -1,8 +1,8 @@ - + 4.0.0 com.wacai.loan @@ -15,351 +15,76 @@ http://www.jasig.org/cas/ 2004 - - org.jasig.parent - jasig-parent - 34 - + + CAS + 2.3.0.RELEASE + 3.1.1.RELEASE + 1.3.1.RELEASE + 3.1.0.RELEASE + 2.6.3 + 1.8.10 + 1.0.0.GA + 0.9.14 + 1.1 + 4.2.0.Final + 4.1.0.Final + 1.7.1 + 1.5.1 + 2.5 + 2.0-cr-1 + 1.4 + 1.2.15 + 4.10 + 2.5 + 1.0.7.GA + 2.0 + 1.9.0 + 1.8 + 2.6.0 + 2.0.0 + 2.1 + - - - - src/main/resources - - - - - ${basedir}/src/test/resources - - - - - - - org.apache.maven.plugins - maven-surefire-plugin - 2.12 - - once - - **/*Tests.java - - - **/Abstract*.java - - - ${project.build.directory}/test-lib/jdbc-driver.jar - - - - - - - - - org.apache.maven.plugins - maven-enforcer-plugin - 1.2 - - - enforce - - enforce - - - - - 2.0.9 - - - ${jdk.version} - - - - cglib:cglib - cglib:cglib-full - - - cglib:cglib:provided - cglib:cglib-full:provided - - true - - - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - - 1.6 - ${jdk.version} - - - - org.apache.maven.plugins - maven-jar-plugin - - - - true - - - - - - org.apache.maven.plugins - maven-assembly-plugin - 2.2.1 - - - ${basedir}/assembly.xml - - - - - - org.apache.maven.plugins - maven-release-plugin - 2.2.1 - - forked-path - v@{project.version} - - - - - org.apache.maven.plugins - maven-antrun-plugin - 1.5 - - - - - - - - com.mycila.maven-license-plugin - maven-license-plugin - -
src/licensing/header.txt
- - src/licensing/header-definitions.xml - - true - - LICENSE - **/INSTALL* - **/NOTICE* - **/README* - **/readme* - **/*.log - **/*.license - **/*.txt - **/*.crt - **/*.crl - **/*.key - **/.gitignore - **/.eclipse/** - **/.idea/** - **/overlays/** - src/licensing/** - **/testCA/** - -
-
-
-
+ + cas-server-core + cas-server-webapp + cas-server-support-jdbc + - - - junit - junit - ${junit.version} - test - - - - org.mockito - mockito-core - ${mockito.version} - test - - - - org.springframework - spring-test - ${spring.version} - test - - - - javax.servlet - servlet-api - provided - - - - org.aspectj - aspectjrt - compile - ${aspectj.version} - - - - org.aspectj - aspectjweaver - compile - ${aspectj.version} - - - - javax.validation - validation-api - ${javax.validation.version} - compile - - - - org.slf4j - slf4j-api - ${slf4j.version} - compile - - - - org.slf4j - slf4j-log4j12 - ${slf4j.version} - runtime - jar - - - log4j - log4j - - - - - - org.slf4j - jcl-over-slf4j - ${slf4j.version} - compile - - - - - - jasig-repository - Jasig Maven2 Repository - http://developer.ja-sig.org/maven2 - - - - jboss - JBoss Repository - default - http://repository.jboss.org/nexus/content/groups/public-jboss/ - - - - - - mojo-snapshot - Codehause Mojo Snapshot Repository - https://nexus.codehaus.org/content/repositories/codehaus-snapshots/ - - true - - - + + org.slf4j + slf4j-api + ${slf4j.version} + commons-lang commons-lang ${commons.lang.version} - net.sf.ehcache ehcache-core ${ehcache.version} - - + com.github.inspektr inspektr-audit ${inspektr.version} - com.github.inspektr inspektr-common ${inspektr.version} - com.github.inspektr inspektr-support-spring ${inspektr.version} - commons-jexl commons-jexl @@ -371,7 +96,6 @@ pTSqrOnmqmUUnopqmvummmmmmUUnopqmvummmmmmUUA1jJ - org.jasig.service.persondir person-directory-impl @@ -383,43 +107,31 @@ pTSqrOnmqmUUnopqmvummmmmmUUnopqmvummmmmmUUA1jJ - commons-codec commons-codec ${commons.codec.version} - compile - org.hibernate hibernate-core ${hibernate.core.version} - jar - org.hibernate hibernate-entitymanager ${hibernate.core.version} - jar - org.hibernate hibernate-annotations ${hibernate.core.version} - compile - jar - org.hibernate.java-persistence jpa-api ${jpa.version} - compile - org.springframework.security @@ -432,19 +144,16 @@ pTSqrOnmqmUUnopqmvummmmmmUUnopqmvummmmmmUUA1jJ - org.springframework.security spring-security-core ${spring.security.version} - org.springframework.security spring-security-web ${spring.security.version} - org.springframework.security spring-security-config @@ -456,7 +165,6 @@ pTSqrOnmqmUUnopqmvummmmmmUUnopqmvummmmmmUUA1jJ - org.springframework @@ -468,7 +176,6 @@ pTSqrOnmqmUUnopqmvummmmmmUUnopqmvummmmmmUUA1jJ spring-aspects ${spring.version} - org.springframework spring-beans @@ -520,7 +227,6 @@ pTSqrOnmqmUUnopqmvummmmmmUUnopqmvummmmmmUUA1jJ spring-oxm ${spring.version} - org.springframework spring-test @@ -561,12 +267,10 @@ pTSqrOnmqmUUnopqmvummmmmmUUnopqmvummmmmmUUA1jJ - org.springframework.ldap spring-ldap-core-tiger ${spring.ldap.version} - compile commons-logging @@ -574,7 +278,6 @@ pTSqrOnmqmUUnopqmvummmmmmUUnopqmvummmmmmUUA1jJ - org.springframework.ldap spring-ldap-core @@ -586,37 +289,31 @@ pTSqrOnmqmUUnopqmvummmmmmUUnopqmvummmmmmUUA1jJ - javax.servlet servlet-api ${servlet.api.version} - org.aspectj aspectjweaver ${aspectj.version} - org.aspectj aspectjrt ${aspectj.version} - org.hibernate hibernate-validator ${hibernate.validator.version} - org.hsqldb hsqldb ${hsqldb.version} - joda-time joda-time @@ -625,80 +322,183 @@ pTSqrOnmqmUUnopqmvummmmmmUUnopqmvummmmmmUUA1jJ - - cas-server-core - cas-server-webapp - cas-server-support-jdbc - + + + + src/main/resources + + + + + ${basedir}/src/test/resources + + - - - ci - - - - org.apache.maven.plugins - maven-source-plugin - 2.2 - - - attach-sources - - jar - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.8 + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.12 + + once + + **/*Tests.java + + + **/Abstract*.java + + + ${project.build.directory}/test-lib/jdbc-driver.jar + + + + + + + + + + org.apache.maven.plugins + maven-enforcer-plugin + 1.2 + + + enforce + + enforce + - UTF-8 - UTF-8 - UTF-8 + + + 2.0.9 + + + ${jdk.version} + + + + cglib:cglib + cglib:cglib-full + + + cglib:cglib:provided + cglib:cglib-full:provided + + true + + - - - attach-javadocs - - jar - - - - - - - - - - - CAS - 2.3.0.RELEASE - 3.1.1.RELEASE - 1.3.1.RELEASE - 3.1.0.RELEASE - 2.6.3 - 1.8.10 - 1.0.0.GA - 0.9.14 - 1.1 - 4.2.0.Final - 4.1.0.Final - 1.7.1 - 1.5.1 - 2.5 - 2.0-cr-1 - 1.4 - 1.2.15 - 4.10 - 2.5 - 1.0.7.GA - 2.0 - 1.9.0 - 1.8 - 2.6.0 - 2.0.0 - 2.1 - + + + + + org.apache.maven.plugins + maven-compiler-plugin + + 1.6 + ${jdk.version} + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + + + + + + org.apache.maven.plugins + maven-assembly-plugin + 2.2.1 + + + ${basedir}/assembly.xml + + + + + org.apache.maven.plugins + maven-release-plugin + 2.2.1 + + forked-path + v@{project.version} + + + + + org.apache.maven.plugins + maven-antrun-plugin + 1.5 + + + + + + + + com.mycila.maven-license-plugin + maven-license-plugin + +
src/licensing/header.txt
+ + src/licensing/header-definitions.xml + + true + + LICENSE + **/INSTALL* + **/NOTICE* + **/README* + **/readme* + **/*.log + **/*.license + **/*.txt + **/*.crt + **/*.crl + **/*.key + **/.gitignore + **/.eclipse/** + **/.idea/** + **/overlays/** + src/licensing/** + **/testCA/** + +
+
+ +
+ + + + + jasig-repository + Jasig Maven2 Repository + http://developer.ja-sig.org/maven2 + + + + jboss + JBoss Repository + default + http://repository.jboss.org/nexus/content/groups/public-jboss/ + + + + + + mojo-snapshot + Codehause Mojo Snapshot Repository + https://nexus.codehaus.org/content/repositories/codehaus-snapshots/ + + true + + + +