Skip to content
Snippets Groups Projects

dev-cas, fake implementation of CAS server

Goals

  • Use a fake CAS server to develop application at localhost keeping a CAS authentication.
  • Implement only the needed URI.
  • Use specifications from Apereo.
  • Install it on Tomcat.

🛠️ Tech Stack

Development

  1. Package with mvn package.
  2. Run the embedded Tomcat with mvn cargo:run -Plocal.
  3. Change the files.
  4. Package again mvn package, Tomcat reloads.

Ensure code is well written with mvn checkstyle:checkstyle pmd:pmd pmd:cpd spotbugs:spotbugs.

🛠️ Installation

Use Maven to deploy on Tomcat. Eg. with server siclima-preprod:

mvn cargo:deploy -Premote -Dcargo.server.settings=siclima-preprod

with ~/.m2/settings.xml with something like:

<servers>
  <server>
    <id>siclima-preprod</id>
    <configuration>
      <cargo.remote.uri>http://siclima-preprod:8081/manager/text</cargo.remote.uri>
      <cargo.remote.username>tomcat-user</cargo.remote.username>
      <cargo.remote.password>tomcat-password</cargo.remote.password>
    </configuration>
  </server>
<servers>

Usage

Simply use these URL to configure CAS in the app (Example with server siclima-preprod):

Project reports are available using Maven: mvn site and then see target/site/index.html.

Authors

See AUTHORS file.

License

See LICENSE file.