Configuring basic CAS integration
Since the Spring Security namespace does not support CAS configuration, there are quite a few more steps that we need to implement to get a basic working setup.
Configuring the CAS properties
The Spring Security setup relies on an o.s.s.cas.ServiceProperties
bean in order to store common information about CAS. The ServiceProperties
object plays a role in coordinating the data exchange between the various CAS components—it is used as a data object to store CAS configuration settings that are shared (and are expected to match) by the varying participants in the Spring CAS stack. You can view the configuration included in the following code snippet:
//src/main/java/com/packtpub/springsecurity/configuration/CasConfig.java @Configuration public class CasConfig { @Value("${cas.base.url}") private String casBaseUrl; @Value("${cas.login.url}") ...