|
|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2024 the original author or authors. |
|
|
|
* Copyright 2002-2025 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -83,10 +83,11 @@ final class ReactiveAuthorizationManagerMethodSecurityConfiguration |
|
|
|
|
|
|
|
|
|
|
|
private final AuthorizationManagerAfterReactiveMethodInterceptor postAuthorizeMethodInterceptor; |
|
|
|
private final AuthorizationManagerAfterReactiveMethodInterceptor postAuthorizeMethodInterceptor; |
|
|
|
|
|
|
|
|
|
|
|
@Autowired(required = false) |
|
|
|
ReactiveAuthorizationManagerMethodSecurityConfiguration( |
|
|
|
ReactiveAuthorizationManagerMethodSecurityConfiguration(MethodSecurityExpressionHandler expressionHandler, |
|
|
|
ObjectProvider<MethodSecurityExpressionHandler> expressionHandlers, |
|
|
|
ObjectProvider<ObjectPostProcessor<ReactiveAuthorizationManager<MethodInvocation>>> preAuthorizePostProcessor, |
|
|
|
ObjectProvider<ObjectPostProcessor<ReactiveAuthorizationManager<MethodInvocation>>> preAuthorizePostProcessor, |
|
|
|
ObjectProvider<ObjectPostProcessor<ReactiveAuthorizationManager<MethodInvocationResult>>> postAuthorizePostProcessor) { |
|
|
|
ObjectProvider<ObjectPostProcessor<ReactiveAuthorizationManager<MethodInvocationResult>>> postAuthorizePostProcessor) { |
|
|
|
|
|
|
|
MethodSecurityExpressionHandler expressionHandler = expressionHandlers.getIfUnique(); |
|
|
|
if (expressionHandler != null) { |
|
|
|
if (expressionHandler != null) { |
|
|
|
this.preFilterMethodInterceptor = new PreFilterAuthorizationReactiveMethodInterceptor(expressionHandler); |
|
|
|
this.preFilterMethodInterceptor = new PreFilterAuthorizationReactiveMethodInterceptor(expressionHandler); |
|
|
|
this.preAuthorizeAuthorizationManager = new PreAuthorizeReactiveAuthorizationManager(expressionHandler); |
|
|
|
this.preAuthorizeAuthorizationManager = new PreAuthorizeReactiveAuthorizationManager(expressionHandler); |
|
|
|
|