Turnstile

Quick rating

Turnstile

No reviews yet

Automatic player authentication for offline servers via subdomain tokens. No commands needed!

QoL & Tweaks
Mod Loaders
Fabric
Minecraft
26.2

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Unsupported
Server Required

About

Project Details

Type
Mod
License
GNU General Public License v3.0 only
Latest Version
turnstile-0.1.0-beta.1.jar
Authors
CurseForge
Modrinth

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID
Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

Turnstile

Turnstile is a server-side Fabric mod that adds token-based authentication to offline-mode Minecraft servers. Players authenticate by connecting through a server address with a personal token as its first subdomain, so no in-game login command is required.

Turnstile is intended for offline-mode servers. It does not replace Mojang/Microsoft account authentication and is not needed on servers with online mode enabled.

Requirements

  • Fabric Loader 0.19.3 or compatible
  • Fabric API 0.153.0+26.2 or compatible

Configure a wildcard DNS record such as *.mc.example.com pointing to your server or proxy. This mod is not suitable for servers without a domain name.

How it works

  1. A player connects using their personal token as the bottom-level domain:
TOKEN.mc.example.com
  1. Turnstile verifies the token against the player's offline-mode UUID.
  2. If valid, the player may join. The token remains valid until it is regenerated or revoked.

Token generation

A connected client must request a token by executing the command /turnstile token generate or interacting with prompts.

For security reasons, a server operator cannot generate a token for another player. Because of this, a one-time pass must be granted to players before a token request can be made. The token is not logged on the server and is hashed before being stored.

Generating a new token replaces the previous one for that player.

One-time passes

Server moderators can grant one-time passes to let a player join without their token. After joining with a pass, the player is prompted to generate a new token. When a player successfully authenticates with their token, their passes are reset.

Commands

Command Permission Description
/turnstile token generate Any player Generates a new token for yourself.
/turnstile token revoke <player> Moderator Revokes a player's token.
/turnstile passes get Any player Shows your remaining one-time passes.
/turnstile passes get <player> Moderator Shows a player's remaining one-time passes.
/turnstile passes set <player> <amount> Moderator Sets a player's one-time pass count. Use 0 to remove all passes.

Configuration

Server domain

When providing a token to a player, the server has the option of returning a full address instead of just the token. For that, the server domain must be written in config/turnstile.txt. If the server wishes to display just the token, the file should not exist.

For example, a file with the contents mc.example.com would display TOKEN.mc.example.com to a player.

Game rule

Authentication can be enabled or disabled at runtime:

/gamerule turnstile:enable true

It is enabled by default. Disabling it restores the server's usual offline-mode login behavior.

Security concerns

Since tokens are exposed in the hostname, they are visible to DNS providers and proxies, and may be recorded in logs. Use a software stack that you have control over, and only share server infrastructure with people you trust. Always keep backups of your server.

The mod is currently in beta and may contain other vulnerabilities. Other approaches to authentication, security features, and changes to the interface are expected to be introduced in future versions.

Turnstile

Turnstile is a server-side Fabric mod that adds token-based authentication to offline-mode Minecraft servers. Players authenticate by connecting through a server address with a personal token as its first subdomain, so no in-game login command is required.

Turnstile is intended for offline-mode servers. It does not replace Mojang/Microsoft account authentication and is not needed on servers with online mode enabled.

Requirements

  • Fabric Loader 0.19.3 or compatible
  • Fabric API 0.153.0+26.2 or compatible

Configure a wildcard DNS record such as *.mc.example.com pointing to your server or proxy. This mod is not suitable for servers without a domain name.

How it works

  1. A player connects using their personal token as the bottom-level domain:
TOKEN.mc.example.com
  1. Turnstile verifies the token against the player's offline-mode UUID.
  2. If valid, the player may join. The token remains valid until it is regenerated or revoked.

Token generation

A connected client must request a token by executing the command /turnstile token generate or interacting with prompts.

For security reasons, a server operator cannot generate a token for another player. Because of this, a one-time pass must be granted to players before a token request can be made. The token is not logged on the server and is hashed before being stored.

Generating a new token replaces the previous one for that player.

One-time passes

Server moderators can grant one-time passes to let a player join without their token. After joining with a pass, the player is prompted to generate a new token. When a player successfully authenticates with their token, their passes are reset.

Commands

Command Permission Description
/turnstile token generate Any player Generates a new token for yourself.
/turnstile token revoke <player> Moderator Revokes a player's token.
/turnstile passes get Any player Shows your remaining one-time passes.
/turnstile passes get <player> Moderator Shows a player's remaining one-time passes.
/turnstile passes set <player> <amount> Moderator Sets a player's one-time pass count. Use 0 to remove all passes.

Configuration

Server domain

When providing a token to a player, the server has the option of returning a full address instead of just the token. For that, the server domain must be written in config/turnstile.txt. If the server wishes to display just the token, the file should not exist.

For example, a file with the contents mc.example.com would display TOKEN.mc.example.com to a player.

Game rule

Authentication can be enabled or disabled at runtime:

/gamerule turnstile:enable true

It is enabled by default. Disabling it restores the server's usual offline-mode login behavior.

Security concerns

Since tokens are exposed in the hostname, they are visible to DNS providers and proxies, and may be recorded in logs. Use a software stack that you have control over, and only share server infrastructure with people you trust. Always keep backups of your server.

The mod is currently in beta and may contain other vulnerabilities. Other approaches to authentication, security features, and changes to the interface are expected to be introduced in future versions.

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Total Downloads
CurseForge
<1,000
Modrinth
<1,000
Last Updated
CurseForge
Created
CurseForge
Modrinth
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works