Commit Graph
13 Commits
Author SHA1 Message Date
selimaj-devandclaude c9abf5df77 Authenticate through Mojang's session server; add version manifest
Replace `auth` (which received the player's Minecraft access token) with
the vanilla online-mode flow, so the token never reaches this server:

- auth_challenge: validate the username and return a random one-time
  server id
- the client calls Mojang's session `join` with its token and that id
- auth_verify: confirm the join with Mojang's `hasJoined` and log the
  player in

Add GET /versions returning {"supported": [...], "deprecated": [...]}
from the SUPPORTED_VERSIONS / DEPRECATED_VERSIONS env vars (defaults:
0.1.0-beta3 supported), exposed in compose.yaml.

Refs saturnclientmc/saturnclient#7

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-25 15:22:18 +02:00
selimaj-devandclaude b1a836fc2a Bump session-rs to 0.2.1
Picks up the fix that releases session handlers on close, so closed
connections no longer leak their Session and handler state.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-25 05:48:01 +02:00
selimaj-devandclaude 1f874a5cff Switch to axum and session-rs 0.2 with a health endpoint
- Serve the session WebSocket on `/` through axum
  (`Session::from_axum`) with a 1 MiB message limit
- Add `/health` (checks the database) and a `server healthcheck`
  subcommand used by the Dockerfile HEALTHCHECK
- Shut down on SIGTERM/Ctrl+C so container stops are immediate
- Move per-connection handler registration into `register_handlers`

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-25 05:44:15 +02:00
selimaj-dev b2531665e2 Updated session version 2026-03-30 13:42:50 +02:00
selimaj-dev 5cc4685588 Session management 2026-02-23 07:57:10 +01:00
selimaj-dev d42d753a87 Reqwest 2026-02-23 05:49:08 +01:00
selimaj-dev cdb40f64f4 Structuring 2026-02-23 02:25:38 +01:00
selimaj-dev 7b532981a1 Structuring 2026-02-23 02:02:22 +01:00
selimaj-dev 56fb719cca Testing new session server 2026-02-23 00:36:24 +01:00
selimaj-dev 9b554aa510 Rewriting 2026-02-20 18:47:36 +01:00
selimaj-dev 69ad3f92de encryption example 2025-04-13 03:14:16 +02:00
selimaj-dev c750dbd8f1 testing 2025-03-10 22:56:58 +01:00
selimaj-dev 6b406c24d3 socket server with rust 2025-03-06 00:33:08 +01:00