November 2017
Intermediate to advanced
542 pages
14h 24m
English
As we briefly mentioned earlier in this chapter, Spring Security uses an o.s.s.web.AuthenticationEntryPoint interface to request credentials from the user. Typically, this involves redirecting the user to the login page. With CAS, we will need to redirect the CAS server to request a login. When we redirect to the CAS server, Spring Security must include a service parameter that indicates where the CAS server should send the service ticket. Fortunately, Spring Security provides the o.s.s.cas.web.CasAuthenticationEntryPoint object, which is specifically designed for this purpose. The configuration that is included in the sample application is as follows:
//src/main/java/com/packtpub/springsecurity/configuration/CasConfig.java ...
Read now
Unlock full access