ShadowJonathan / eduP2P

An authenticated peer-to-peer network overlay
MIT License
3 stars 1 forks source link

[S] Authentication / Session Distribution #3

Open ShadowJonathan opened 5 months ago

ShadowJonathan commented 4 months ago

The logon process is something like this:


Clients receive session updates over their open websockets with the coordination server.


When the websocket disconnects, the server waits 5 minutes before it times out the session. When the server receives a new logon from the client within that time, the session is just updated with new endpoints (and session key, if need be), and not stopped.


Any non-expired node key can always request to fetch current relay information. A client can use this to bootstrap STUN-gotten public endpoints before it logs on.


Authentication just revives or validates a node key, it does not log on the client.