Pixelairport's avatar

Security Question: Store access token for microservice in laravel cache?

I have a gateway and different microservices. Every service and also gateway is a laravel system with passport. The gateway will redirect the requests to the right microservice. If the gateway has no access token, a new one is created and stored. It is the token, that only the gateway can access the microservice and it is created with ID and Secret for the microservice. But where is the best place in gateway to store the access token? Database or in cache? And should i encrypt the access token with the App_Key? What do you think?

0 likes
0 replies

Please or to participate in this conversation.