I am using Spring Boot to build a simple microservices web app. I decided to create several services for my front-end and several REST services for the backend.
Let's say I have 2 front-end using Thymeleaf : login and products-list. I also have 2 REST services, users and product. login sends requests to users to manage connection, and products-list sends requests to products to manage CRUD operations on products. Some operations can only be performed if the user is connected and authentified.
Problem is : I don't know how to tell to my products-list service that my user is connected. And since login and products-list are two separate applications, I haven't found a way to send data from login to products-list without exposing them (like token, etc.).
I know that Spring Security exists but I'd to like to find another way, and I'm even sure it handles this case with redirection.
TLDR : how to pass token safely with redirection in Spring ?
Thanks