File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
main/java/org/springframework/security/config/annotation/web/configurers
test/java/org/springframework/security/config/annotation/web/configurers Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 30
30
import org .springframework .security .config .annotation .web .AbstractRequestMatcherRegistry ;
31
31
import org .springframework .security .config .annotation .web .HttpSecurityBuilder ;
32
32
import org .springframework .security .web .access .intercept .AuthorizationFilter ;
33
- import org .springframework .security .web .access .intercept .DelegatingAuthorizationManager ;
34
33
import org .springframework .security .web .access .intercept .RequestAuthorizationContext ;
34
+ import org .springframework .security .web .access .intercept .RequestMatcherDelegatingAuthorizationManager ;
35
35
import org .springframework .security .web .servlet .util .matcher .MvcRequestMatcher ;
36
36
import org .springframework .security .web .util .matcher .RequestMatcher ;
37
37
import org .springframework .util .Assert ;
@@ -89,7 +89,8 @@ private AuthorizationManagerRequestMatcherRegistry addMapping(List<? extends Req
89
89
public final class AuthorizationManagerRequestMatcherRegistry
90
90
extends AbstractRequestMatcherRegistry <AuthorizedUrl > {
91
91
92
- private final DelegatingAuthorizationManager .Builder managerBuilder = DelegatingAuthorizationManager .builder ();
92
+ private final RequestMatcherDelegatingAuthorizationManager .Builder managerBuilder = RequestMatcherDelegatingAuthorizationManager
93
+ .builder ();
93
94
94
95
private List <RequestMatcher > unmappedMatchers ;
95
96
Original file line number Diff line number Diff line change 31
31
import org .springframework .security .core .authority .SimpleGrantedAuthority ;
32
32
import org .springframework .security .web .SecurityFilterChain ;
33
33
import org .springframework .security .web .access .intercept .AuthorizationFilter ;
34
- import org .springframework .security .web .access .intercept .DelegatingAuthorizationManager ;
35
34
import org .springframework .security .web .access .intercept .RequestAuthorizationContext ;
35
+ import org .springframework .security .web .access .intercept .RequestMatcherDelegatingAuthorizationManager ;
36
36
import org .springframework .test .web .servlet .MockMvc ;
37
37
import org .springframework .test .web .servlet .request .MockHttpServletRequestBuilder ;
38
38
import org .springframework .web .bind .annotation .GetMapping ;
@@ -105,7 +105,8 @@ public void configureMvcMatcherAccessAuthorizationManagerWhenNullThenException()
105
105
@ Test
106
106
public void configureWhenObjectPostProcessorRegisteredThenInvokedOnAuthorizationManagerAndAuthorizationFilter () {
107
107
this .spring .register (ObjectPostProcessorConfig .class ).autowire ();
108
- verify (ObjectPostProcessorConfig .objectPostProcessor ).postProcess (any (DelegatingAuthorizationManager .class ));
108
+ verify (ObjectPostProcessorConfig .objectPostProcessor )
109
+ .postProcess (any (RequestMatcherDelegatingAuthorizationManager .class ));
109
110
verify (ObjectPostProcessorConfig .objectPostProcessor ).postProcess (any (AuthorizationFilter .class ));
110
111
}
111
112
You can’t perform that action at this time.
0 commit comments