Skip to content

Commit

Permalink
Fix documentation code block bug
Browse files Browse the repository at this point in the history
Fixes #12850
  • Loading branch information
ghoshbishakh authored and marcusdacoregio committed Mar 22, 2023
1 parent 8d664bc commit c75ee25
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,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>
}
Expand Down Expand Up @@ -911,7 +911,7 @@ public class SomeClass {
// ...
SecurityContext context = this.securityContextHolderStrategy.createEmptyContext(); <1>
context.setAuthentication(authentication); <2>
this.securityContextHolderStrategy.setContext(authentication); <3>
this.securityContextHolderStrategy.setContext(context); <3>
}
}
Expand Down

0 comments on commit c75ee25

Please sign in to comment.