---
title: "Saurabh Singh (@saurabhsingh241) | Hashnode"
description: "noob dev. Read the latest articles by Saurabh Singh on Hashnode."
url: "https://hashnode.com/@saurabhsingh241"
---

@saurabhsingh241

# Saurabh Singh

@saurabhsingh241 · Joined September 2022

noob dev

## Comments

[Thanks for the detailed blog I learned a lot. I have only 1 doubt in our JWTFilter implementation. usernamePasswordAuthenticationToken .setDetails(new WebAuthenticationDetailsSource() .buildDetails(request)); SecurityContextHolder .getContext() .setAuthentication(usernamePasswordAuthenticationToken); I am not able to understand what these two lines are doing can you explain.](https://hashnode.com/posts/spring-boot-rest-api-authentication-best-practices-using-jwt/61e44ef89f8415199ccaddff/comment/6323759e55fb028b6442a702)

Comment · Article · Sep 15, 2022 · [Spring Boot REST API authentication best practices using JWT](https://hashnode.com/posts/spring-boot-rest-api-authentication-best-practices-using-jwt/61e44ef89f8415199ccaddff)
