November 2017
Intermediate to advanced
542 pages
14h 24m
English
If we want to modify our application to use the access decision manager, we require two modifications. In order to do this, we add the accessDecisionManager entry to the http element in our SecurityConfig.java file, as follows:
//src/main/java/com/packtpub/springsecurity/configuration/ SecurityConfig.java http.authorizeRequests() .anyRequest() .authenticated() .accessDecisionManager(accessDecisionManager());
This is a standard Spring bean reference, so this should correspond to the id attribute of a bean. We could then define the UnanimousBased bean, as shown in the following code snippet. Note that we will not actually utilize this configuration in our exercises:
//src/main/java/com/packtpub/springsecurity/configuration/SecurityConfig.java ...
Read now
Unlock full access