Josh Cummings 50ffc04d54 Make Projects Individually Runnable 1 year ago
..
gradle 50ffc04d54 Make Projects Individually Runnable 1 year ago
src 22d56492bc Fix CAS tests 1 year ago
README.adoc f27d800bcf Add CAS sample 2 years ago
build.gradle 23e81699ae Update Remaining Samples to 6.4.0-SNAPSHOT 1 year ago
gradle.properties dedb6f4009 Increase max memory allocation 1 year ago
gradlew f27d800bcf Add CAS sample 2 years ago
gradlew.bat f27d800bcf Add CAS sample 2 years ago
settings.gradle 50ffc04d54 Make Projects Individually Runnable 1 year ago

README.adoc

= CAS Login & Logout Sample

This sample provides a very simple implementation of a CAS Service (application) that uses a local CAS server for authentication.

== Run the Sample

=== Requirements

In order to run the sample locally, you must have https://www.docker.com/[Docker] installed or a running CAS server.

=== Start Up the Local CAS Server

Run the following command from the root of the project:
[source,bash]
----
docker-compose -f docker/cas/docker-compose.yml up
----

=== Start up the Sample Application
Run the `CasLoginApplication` class from your IDE or run the following command from the root of the project:
[source,bash]
----
./gradlew :servlet:spring-boot:java:cas:login:bootRun
----

=== Open a Browser

http://localhost:8080/

You will be redirected to the local CAS server: http://localhost:8090/cas

=== Type in the credentials

[source,bash]
----
User: casuser
Password: Mellon
----