SecurityContextHolder setAuthentication is unused?
gafarma89 opened this issue · 0 comments
gafarma89 commented
Hi
first thank for your sharing...
I would like to ask why we need this:
SecurityContextHolder.getContext().setAuthentication(authentication);
source:
@PostMapping("/authenticate") method returns only header from controller. Is there any reason of above line? If not, can we remove it?
Thank you