Browse Source

Remove duplicate setSecurityContextHolderStrategy

Closes gh-14592
pull/14683/head
DingHao 2 years ago committed by Josh Cummings
parent
commit
45c37c4454
  1. 3
      config/src/main/java/org/springframework/security/config/annotation/web/configurers/LogoutConfigurer.java

3
config/src/main/java/org/springframework/security/config/annotation/web/configurers/LogoutConfigurer.java

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2023 the original author or authors. * Copyright 2002-2024 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.
@ -335,7 +335,6 @@ public final class LogoutConfigurer<H extends HttpSecurityBuilder<H>>
LogoutFilter result = new LogoutFilter(getLogoutSuccessHandler(), handlers); LogoutFilter result = new LogoutFilter(getLogoutSuccessHandler(), handlers);
result.setSecurityContextHolderStrategy(getSecurityContextHolderStrategy()); result.setSecurityContextHolderStrategy(getSecurityContextHolderStrategy());
result.setLogoutRequestMatcher(getLogoutRequestMatcher(http)); result.setLogoutRequestMatcher(getLogoutRequestMatcher(http));
result.setSecurityContextHolderStrategy(getSecurityContextHolderStrategy());
result = postProcess(result); result = postProcess(result);
return result; return result;
} }

Loading…
Cancel
Save