The front-end stores user information in a cookie and passes it to the gateway. After the gateway parses the user information, it sets information such as username userId in the header or cookie. The services after the gateway extract user information directly from the header/cookie. This is my simple plan, you can make modifications according to your own needs. Hope it's helpful to you.