README.adoc 910 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. = CAS Login & Logout Sample
  2. This sample provides a very simple implementation of a CAS Service (application) that uses a local CAS server for authentication.
  3. == Run the Sample
  4. === Requirements
  5. In order to run the sample locally, you must have https://www.docker.com/[Docker] installed or a running CAS server.
  6. === Start Up the Local CAS Server
  7. Run the following command from the root of the project:
  8. [source,bash]
  9. ----
  10. docker-compose -f docker/cas/docker-compose.yml up
  11. ----
  12. === Start up the Sample Application
  13. Run the `CasLoginApplication` class from your IDE or run the following command from the root of the project:
  14. [source,bash]
  15. ----
  16. ./gradlew :servlet:spring-boot:java:cas:login:bootRun
  17. ----
  18. === Open a Browser
  19. http://localhost:8080/
  20. You will be redirected to the local CAS server: http://localhost:8090/cas
  21. === Type in the credentials
  22. [source,bash]
  23. ----
  24. User: casuser
  25. Password: Mellon
  26. ----