I have a web game design question. I am trying to build a multiplayer web game with non-intensive graphics (ex tic-tac-toe, chess). I am trying to figure out how to take already authenticated users in the website (Django auth) and authenticate them to a java game server where they will be able to talk and receive updates to the java game server using a socket connection.
My initial plan was this:
- Authenticated client sends their username and website session ID to the java game server.
- the game server checks that client session ID with the Django server to ensure the user is who they say they are
- If Django server approves, then the game server will send a new temporary token for the client to present to the game server whenever it wants to send information.
I am not sure if this is a good strategy, especially since it deals with passing around session IDs. If you have any advice on how I could go forward with this, let me hear it!