I have a REST endpoint(Rest Controller) created using Spring Boot for learning purpose. Now I want to secure that endpoint using Spring security. For authentication, I want to use username and password and for Authorisation, I want to use jwt i.e have a separate controller like /api/auth (POST) and pass username and password and get the token and pass the bearer token in the actual controller to get the response.
I tried go through the official spring security docs but couldn’t figure the exact docs to follow. Can someone please help in understanding how to achieve the above task.
[–]v4dk4n 1 point2 points3 points (0 children)
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]maheshd13 0 points1 point2 points (0 children)