mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-30 16:52:13 +00:00
Merge remote-tracking branch 'origin/5.8.x'
This commit is contained in:
commit
353ca76973
@ -141,7 +141,7 @@ public class HttpSessionSecurityContextRepository implements SecurityContextRepo
|
||||
SaveContextOnUpdateOrErrorResponseWrapper.class);
|
||||
if (responseWrapper == null) {
|
||||
boolean httpSessionExists = request.getSession(false) != null;
|
||||
SecurityContext initialContext = SecurityContextHolder.createEmptyContext();
|
||||
SecurityContext initialContext = this.securityContextHolderStrategy.createEmptyContext();
|
||||
responseWrapper = new SaveToSessionResponseWrapper(response, request, httpSessionExists, initialContext);
|
||||
}
|
||||
responseWrapper.saveContext(context);
|
||||
|
Loading…
x
Reference in New Issue
Block a user