TeeworldsCN / ddnet-pvp

DDNet based server designed for PvP
Other
10 stars 9 forks source link

[feat][RFC] HTTP/Websockets Authentication API #34

Open TsFreddie opened 3 years ago

TsFreddie commented 3 years ago

We want our own global ban system, but solely relying on a remote command execute system can cause some issues like banlist desync and over populating.

So what if, instead, we make a standard configurable HTTP API for authenticating users when joining.

Joining server might become slower because server need to send request to a http server, but this way we can offload ASN/VPN banning and global ban to a web server.

We are definitely keeping the old ban system for local bans and for hosters who don't want to setup a authentication server.

And we still need the remote command system for banning a players after they have joined.

TsFreddie commented 3 years ago

And we still need the remote command system for banning a players after they have joined.

We can allows servers to connect to a websocket connection that a web service provide to receive new ban infomations.