Skip to content

alexeysmovzh/cas-overlay-template

 
 

Repository files navigation

Test build of CAS Server with github actions

  1. Fork CAS overlay repository https://github.com/apereo/cas-overlay-template

  2. Add dependencies if needed in to build.gradle

  dependencies { 
    ...
    # LDAP support
    implementation "org.apereo.cas:cas-server-support-ldap:${project.'cas.version'}" 
    # Services definitions in JSON files support
    implementation "org.apereo.cas:cas-server-support-json-service-registry:${project.'cas.version'}"
    # OAuth2
    implementation "org.apereo.cas:cas-server-support-oauth-webflow:${project.'cas.version'}"
    ...
  }
  1. Set CAS version to build in gradle.properties
  # The version of this overlay project
  version=6.4.0

  #CAS server version
  cas.version=6.4.0
  1. Create Git CI file .github/workflows/build_cas.yml

  2. Push changes into repository

  git remote set-url origin [email protected]:alexeysmovzh/cas-overlay-template.git
  git commit -am 'new CAS configuration'
  git push
  1. When Github actions completes build download and unzip artifact

CAS configuration

  1. Copy and edit configuration files from etc/cas/config to system /etc folder

  2. Create keystore from existing certificates and place it in /etc/cas folder

  # create PCKS12
  sudo openssl pkcs12 -export -out cas.p12 -inkey ca-key.pem -in ca.pem -certfile ca-root.pem -password pass:secret
  # create JKS Keystore
  sudo keytool -importkeystore -srckeystore cas.p12 -storetype pkcs12 -destkeystore cas.jks -deststoretype jks -storepass secret -srcstorepass secret
  1. Run CAS
  java -Xms256m -Xmx512m -jar cas.war 

About

Apereo CAS WAR Overlay template

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 58.6%
  • Shell 41.4%