July 2018
Intermediate to advanced
268 pages
7h 36m
English
Let's bring in the bean references that we have done in the previous step to the Spring Security configuration file. Create a new Java file called SpringSecurityConfig and add member variables. After that, create a constructor with @Autowired annotation as follows:
private AuthenticationProvider authenticationProvider;private AuthenticationEntryPoint authenticationEntryPoint;@Autowiredpublic SpringSecurityConfig(CasAuthenticationProvider casAuthenticationProvider, AuthenticationEntryPoint authenticationEntryPoint) { this.authenticationProvider = casAuthenticationProvider; this.authenticationEntryPoint = authenticationEntryPoint;}
When a user accesses a client application that is secured by a CAS server, the configured ...
Read now
Unlock full access