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
Last revisionBoth sides next revision
general:linux:cas [2021/03/16 09:19] – [Updated instructions for Apereo CAS 6.3 on Debian Buster] sunkangeneral:linux:cas [2021/03/16 12:22] – [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 106: Line 106:
  
 To just build the standard default build To just build the standard default build
-<code> +<code bash
-git clone https://github.com/apereo/cas-overlay-template cas-overlay-template-6.3.x +git clone https://github.com/apereo/cas-overlay-template cas-overlay-template-6.3.x 
-git checkout origin/6.3 -b wrkm-6.3+git checkout origin/6.3 -b wrkm-6.3
  
-./gradlew build+./gradlew build
  
 [...] [...]
Line 118: Line 118:
 </code> </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>
general/linux/cas.txt · Last modified: 2021/03/16 14:36 by sunkan

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