SEC-539: Removed filterApplied boolean.
This commit is contained in:
parent
e8d11f28f2
commit
27ef2caf45
|
@ -218,7 +218,6 @@ public class HttpSessionContextIntegrationFilter implements InitializingBean, Fi
|
|||
|
||||
// Proceed with chain
|
||||
int contextWhenChainProceeded = SecurityContextHolder.getContext().hashCode();
|
||||
boolean filterApplied = true;
|
||||
|
||||
request.setAttribute(FILTER_APPLIED, Boolean.TRUE);
|
||||
|
||||
|
@ -234,9 +233,7 @@ public class HttpSessionContextIntegrationFilter implements InitializingBean, Fi
|
|||
// Store context back to HttpSession
|
||||
storeSecurityContextInSession(request, httpSessionExistedAtStartOfRequest, contextWhenChainProceeded);
|
||||
|
||||
if (filterApplied) {
|
||||
request.removeAttribute(FILTER_APPLIED);
|
||||
}
|
||||
request.removeAttribute(FILTER_APPLIED);
|
||||
|
||||
// Remove SecurityContextHolder contents
|
||||
SecurityContextHolder.clearContext();
|
||||
|
|
Loading…
Reference in New Issue