User Tools

Site Tools


general:linux:cas

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
general:linux:cas [2021/03/16 09:16] sunkangeneral:linux:cas [2021/03/16 14:36] (current) – [Updated instructions for Apereo CAS 6.3 on Debian Buster] sunkan
Line 2: Line 2:
  
 ===== CAS WAR overlay ===== ===== CAS WAR overlay =====
-asuadmin@wrkm-guacamole:~$ git clone https://github.com/apereo/cas-overlay-template+$ git clone https://github.com/apereo/cas-overlay-template
  
-asuadmin@wrkm-guacamole:~/cas-overlay-template$ git checkout 5.1+$ git checkout 5.1
  
  
Line 104: Line 104:
  
 ====== Updated instructions for Apereo CAS 6.3 on Debian Buster ====== ====== Updated instructions for Apereo CAS 6.3 on Debian Buster ======
 +
 +To just build the standard default build
 +<code bash>
 +$ git clone https://github.com/apereo/cas-overlay-template cas-overlay-template-6.3.x
 +$ git checkout origin/6.3 -b wrkm-6.3
 +
 +$ ./gradlew build
 +
 +[...]
 +
 +$ ls -l build/libs/cas.war 
 +-rw-r--r-- 1 xxx xxx 101063231 Mar 16 09:18 build/libs/cas.war
 +</code>
 +
 +Add our dependencies, and choose to run in the Debian tomcat container
 +<code diff>
 +diff --git a/build.gradle b/build.gradle
 +index 89791ab..3d646b4 100644
 +--- a/build.gradle
 ++++ b/build.gradle
 +@@ -82,6 +82,14 @@ dependencies {
 +     }
 +     // CAS dependencies/modules may be listed here statically...
 +     implementation "org.apereo.cas:cas-server-webapp-init:${casServerVersion}"
 ++    implementation "org.apereo.cas:cas-server-support-json-service-registry:${casServerVersion}"
 ++    implementation "org.apereo.cas:cas-server-support-jpa-ticket-registry:${project.'cas.version'}"
 ++    implementation "org.apereo.cas:cas-server-support-jdbc-drivers:${project.'cas.version'}"
 ++    implementation "org.apereo.cas:cas-server-support-gauth:${project.'cas.version'}"
 ++    implementation "org.apereo.cas:cas-server-support-gauth-jpa:${project.'cas.version'}"
 ++    implementation "org.apereo.cas:cas-server-support-ldap:${project.'cas.version'}"
 ++    implementation "org.apereo.cas:cas-server-support-reports:${project.'cas.version'}"
 ++    implementation "org.apereo.cas:cas-server-support-oauth-webflow:${project.'cas.version'}"
 + }
 + 
 + tasks.findByName("jibDockerBuild")
 +diff --git a/gradle.properties b/gradle.properties
 +index cd77ab2..4c0e900 100644
 +--- a/gradle.properties
 ++++ b/gradle.properties
 +@@ -4,7 +4,7 @@ springBootVersion=2.3.7.RELEASE
 + 
 + # Use -jetty, -undertow to other containers
 + # Or blank if you want to deploy to an external container
 +-appServer=-tomcat
 ++appServer=
 + executable=false
 + 
 + tomcatVersion=9.0.43
 +</code>
 +
 +Extract the War to get hold of the files that may need to be modified
 +<code bash>
 +$ ./gradlew explodeWar
 +</code>
 +
 +Then copy and modify files like so:
 +<code bash>
 +cp build/cas-resources/templates/fragments/footer.html src/main/resources/templates/fragments/
 +</code>
 +
 +Added to the server.xml - in addition to previous noted changes
 +<code>
 +<!-- Remote IP Valve - to parse the X-Forwarded-For type headers -->
 +<Valve className="org.apache.catalina.valves.RemoteIpValve" />
 +</code>
general/linux/cas.1615886178.txt.gz · Last modified: 2021/03/16 09:16 by sunkan

Donate Powered by PHP Valid HTML5 Valid CSS Run on Debian Driven by DokuWiki