|
@@ -141,7 +141,7 @@ public class HttpSessionSecurityContextRepository implements SecurityContextRepo
|
|
SaveContextOnUpdateOrErrorResponseWrapper.class);
|
|
SaveContextOnUpdateOrErrorResponseWrapper.class);
|
|
if (responseWrapper == null) {
|
|
if (responseWrapper == null) {
|
|
boolean httpSessionExists = request.getSession(false) != null;
|
|
boolean httpSessionExists = request.getSession(false) != null;
|
|
- SecurityContext initialContext = SecurityContextHolder.createEmptyContext();
|
|
|
|
|
|
+ SecurityContext initialContext = this.securityContextHolderStrategy.createEmptyContext();
|
|
responseWrapper = new SaveToSessionResponseWrapper(response, request, httpSessionExists, initialContext);
|
|
responseWrapper = new SaveToSessionResponseWrapper(response, request, httpSessionExists, initialContext);
|
|
}
|
|
}
|
|
responseWrapper.saveContext(context);
|
|
responseWrapper.saveContext(context);
|