Running the application
Start the CAS server (within cas-server, run ./build.sh run). After that, start the spring boot project (secured-cas-client) by executing ./mvnw spring-boot:run. Navigate your browser to http://localhost:9090. This will take the user to index.html, and when they click on the link (which navigates to the secured.html page), the user is taken to the CAS authentication page. To be authenticated, enter the CAS credentials and, with the ticket set as query string, you will then be taken to the secured page. The secured page validates the ticket with the CAS server and then displays the username.
With this, we complete our CAS sample using Spring Security. In the next section, similar to CAS, we will detail usage of JAAS ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access