Completely getting rid of "userid"
authorDavid Négrier <d.negrier@thecodingmachine.com>
Thu, 14 May 2020 21:19:48 +0000 (23:19 +0200)
committerDavid Négrier <d.negrier@thecodingmachine.com>
Thu, 14 May 2020 21:20:43 +0000 (23:20 +0200)
commit4de552437d7f6ece3d652807de312dfd58280008
tree2ebcf35bb6b8415532afccabc3dab217e62eacb9
parent76b43245c59d4162db73bc69c1a874ad36e0fc10
Completely getting rid of "userid"

Previously, userid was generated by the "/login" route and passed along.
This commit completely removes the uuid "userid" (and disables the LoginController too and any Jwt check).

"userid" is replaced by the "socket id" of the connection.
So a user is now identified using a socket id, which is unique for a given connection.
13 files changed:
back/src/Controller/AuthenticateController.ts
back/src/Controller/IoSocketController.ts
back/src/Model/Websocket/ExSocketInterface.ts
back/src/Model/Websocket/ExtRooms.ts
back/src/Model/Websocket/Identificable.ts [new file with mode: 0644]
back/src/Model/Websocket/Message.ts
back/src/Model/World.ts
back/tests/WorldTest.ts
front/src/Connexion.ts
front/src/Phaser/Game/GameManager.ts
front/src/Phaser/Game/GameScene.ts
front/src/Phaser/Login/LogincScene.ts
front/src/Phaser/Player/Player.ts