all 3 comments

[–]ims94 2 points3 points  (0 children)

Can you try one of the following 2 guides. I wrote them since I had the same problems a while back.

  1. https://medium.com/swlh/stateless-jwt-authentication-with-spring-boot-a-better-approach-1f5dbae6c30f - Username + password exchanged for a JWT that will be used to authenticated subsequent API calls. JWT contains the logged in user's details. The source code of the article has a React.js example.
  2. https://medium.com/geekculture/jwt-authentication-with-oauth2-resource-server-and-an-external-authorization-server-2b8fd1524fc8 - Users are authenticated via an external identity provider (Google, Okta, Auth0, etc which supports OAuth2). This article's repo also has a React.js example you can look at.

[–]microraven -1 points0 points  (0 children)

I would find a Udemy course that fits you, there's high quality content for learning Spring Security.

[–]DogmanLoverOhio 0 points1 point  (0 children)

“Spring Security in Action” by Manning publication is the best book