ali-bouali / spring-boot-3-jwt-security

Sample project on how to implement JWT security based using Spring boot 3 and Spring security 6
https://aliboucoding.com/p/securing-your-spring-boot-3-0-applications-with-json-web-tokens-jwt
Apache License 2.0
1.86k stars 870 forks source link

Security Context holder is not getting Set #30

Closed AdigaAkhil closed 1 year ago

AdigaAkhil commented 1 year ago

The Security Context holder is not getting set as shown in the video, as a result of which for each request the database is looked up for token and user details.

ali-bouali commented 1 year ago

@AdigaAkhil can you elaborate a bit more? I really couldn't get the issue

ali-bouali commented 1 year ago

please try to post your issue in the discord server and you will for sure get the required help there. I need to close this because it is not considered as an issue. Thank you again

AdigaAkhil commented 1 year ago

Hello ali-boulai , apologies for the late reply, I was able to come up with a solution for my bug. However, it would be helpful if you could do a video on the Oauth2 login.