Merge branch '6.0.x'
This commit is contained in:
commit
1730efd130
|
@ -157,7 +157,7 @@ public void login(@RequestBody LoginRequest loginRequest, HttpServletRequest req
|
|||
Authentication authentication = authenticationManager.authenticate(token); <4>
|
||||
SecurityContext context = securityContextHolderStrategy.createEmptyContext();
|
||||
context.setAuthentication(authentication); <5>
|
||||
securityContextHolderStrategy.setContext(authentication);
|
||||
securityContextHolderStrategy.setContext(context);
|
||||
securityContextRepository.saveContext(context, request, response); <6>
|
||||
}
|
||||
|
||||
|
@ -825,7 +825,7 @@ public class SomeClass {
|
|||
// ...
|
||||
SecurityContext context = this.securityContextHolderStrategy.createEmptyContext(); <1>
|
||||
context.setAuthentication(authentication); <2>
|
||||
this.securityContextHolderStrategy.setContext(authentication); <3>
|
||||
this.securityContextHolderStrategy.setContext(context); <3>
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue