There is a frontend server on Tomcat with a user interface on the GWT-Platform and a backend server on Google AppEngine with business logic. Requests are executed both via gwtp-dispatch-rpc-client and via gwtp-dispatch-rest. Authorization happens through OAuth. Previously, when everything was on the same server, sessions were used, now it’s impossible to do it with the help of sessions.
Any idea how to make such secure requests from the frontend to the backend?
UPD
Sessions are working on the backend. It is not clear how I find out that the request came from this client, because the requests do not convey any information, at least in rpc-dispatch. With REST, I think it’s easier because I can send a session token in the request itself, and I don’t know what to do with RPC.
The question is even broader: how to specify in RPC-Disptch that the request should be made not to the same server, but to a completely different address and how to send the token received as a result of authorization in the request.
I assume after OAuth authorization to redirect to the frontend with a token, for example, obtained from the session. And then, transfer this token to each request.