I have a rest api backend service A which is used by two other services:
- B service which is web app running in a browser (separate node server)
- C service which is also backend service (separate server too)
My initial approach was to use basic auth for A-B communication but this does not make sense for A-C since there is no way to safely keep credentials in a browser. On the other hand introducing session and tokens seems weird for A-B communication.
No matter what I do it seems like tug of war.
What do you think might be reasonable solution for such setup?