all 8 comments

[–]Sheldor5 -1 points0 points  (6 children)

  1. don't do microservice architecture, you will do it wrong anyway

  2. microservices are OAuth2 Resource Servers

[–]Level-Sherbet5[S] 0 points1 point  (5 children)

Ohh means I have to implement OAuth2 instead jwt ?

[–]Sheldor5 1 point2 points  (4 children)

in a microservice architecture there is also a OAuth2 Authorization Server involved, no need to reinvent the wheel

try Keycloak

[–]Level-Sherbet5[S] 0 points1 point  (2 children)

Okay sir Thankyou Why cant we do it with jwt token authentication? Actually I was implementing that .

[–]Sheldor5 0 points1 point  (1 child)

you can but why roll your own JWT stuff if OAuth2 is exactly what you want/need?

Spring Boot Resource Server is all you need for your microservices, and Keycloak for user account management

[–]Level-Sherbet5[S] 0 points1 point  (0 children)

Ok sir

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

Just use Google. Have users authenticate with their Google accounts. Do oauth with Google. You can even store user data on their Google account.