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 authentication by employing Spring Security.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.139.108.22