monofuel / badmars

html5 multiplayer rts game
https://japura.net/badmars
Other
4 stars 1 forks source link

OAuth integration #8

Open monofuel opened 7 years ago

monofuel commented 7 years ago

I already use Oauth on japura.net and on ffxivmc, we should use Oauth for login on badmars.

monofuel commented 7 years ago

We should also put the api key into localstorage and not as a cookie.

we can set the api key as a header when initializing the websocket connection, and refactor how logging in and registering works. Move all the login/register junk to REST calls, and require authorization to connect on websocket.

monofuel commented 7 years ago

Punting for now, implemented user registration instead.