跳到正文

LimboAuth Client Mod

作者:hevav

Implement auto-login with the LimboAuth plugin, the client mod and optionally using a custom launcher

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Elytrium

LimboAuth Client Mod

Join our Discord

A client mod for LimboAuth \
Test server: `ely.su`

Mod dependencies

  • Architectury API

Features of LimboAuth Client Mod

  • Saves session tokens to the config file (.minecraft/config/limboauth.yml)
  • You can set your own session token via the custom launcher

How does session token work

  1. The server makes a token – a struct that contains an issue timestamp
  2. The server signs this token with a private verify key (which you can see in the LimboAuth config)
  3. The server sends the token to the client, the client saves it to the config file
  4. When player joins the server, servers asks client if he has a session token
  5. If the player has a session token, it sends it to the server
  6. The server verifies the token via the private verify key

How to generate a session token

Pseudocode

# This key must be the same in the plugin config and in the server hash issuer
verify_key = "testkey123"
issue_timestamp = unix_timestamp_millis()
player_username = "TestPlayer123"

username_bytes = utf8.string_to_bytes(lower(player_username))
timestamp_bytes = big_endian.long_to_bytes(issue_timestamp)

# siphash 2-4 (default siphash) is used here
tokenhash = siphash.hash(verify_key, byte_concat(username_bytes, timestamp_bytes))
hash_bytes = big_endian.long_to_bytes(tokenhash)

token = base64.encode_to_string(byte_concat(timestamp_bytes, hash_bytes))

When does the token expire?

  • The token expires if the player changes his password
  • See ISSUEDTIME database field

Donation

Your donations are really appreciated. Donations wallets/links/cards:

  • MasterCard Debit Card (Tinkoff Bank): `5536 9140 0599 1975`
  • Qiwi Wallet: `PFORG` or this link
  • YooMoney Wallet: `4100 1721 8467 044` or this link
  • Monero (XMR): 86VQyCz68ApebfFgrzRFAuYLdvd3qG8iT9RHcru9moQkJR9W2Q89Gt3ecFQcFu6wncGwGJsMS9E8Bfr9brztBNbX7Q2rfYS

常见问题

LimboAuth Client Mod 支持哪些 Minecraft 版本?

LimboAuth Client Mod 支持 Minecraft Java 版 1.14.4–1.19.4,共 20 个版本,可用的加载器:Fabric / Forge。下载时注意选择和你游戏版本一致的文件。

LimboAuth Client Mod 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。

评论

登录后评论和评分