Compatibility
Minecraft: Java Edition
26.3
26.2
26.1.x
1.21.11
Platforms
Supported environments
Client-side
Server-side
Client and server
Links
Tags
Creators
Details
Licensed CC-BY-ND-4.0
Published 10 months ago
Updated 2 weeks ago
Usage
This mod provides a more advanced way to protect your server. It is used on servers that have online-mode to false in order to prevent account stealing and player coordinate leakage.
How it works
When a player tries to connect to a server, SHAuth contacts the client and verifies that the connecting player provides a valid key tied to their username. If the key is valid, the connection proceeds, otherwise the player is kicked.

What it safeguards against
- In servers that have online-mode to false, anyone can pick any username and impersonate another player. SHAuth prevents attackers from joining as someone else.
- Most log-in systems require you to first connect to the server and then log-in. This process allows an attacker to access information like the player's cordinates, which can be frustrating in competitive servers. However, SHAuth requires valid credentials before granting access.
How to use it
There are two modes that act differently. Choose one that fits your needs.
Auto Mode
Each user that joins is automatically assigned a key.
Manual Mode
Requires an operator to authorize and hand the key to a user.
- An operator creates a key for a player by using /shauth authorize <username>
- Players should enter the key in the server's properties menu under Server Address.
Switch modes anytime by using /shauth mode <auto|manual>

Commands
- /shauth authorize <username> - Assigns a key to a player which grants them access to the server.
- /shauth unauthorize <username> - Invalidates the key assigned to a player which revokes their access to the server.
- /shauth reset <username> - Reassigns a key to a player, invalidating the old one (useful if the key gets leaked).
- /shauth list - Shows the list of players which have been assigned keys.
- /shauth mode <auto|manual> - Switches between auto and manual mode.
- /shauth help - Shows a message containing all the commands.


