OAuth2 authentication for Fabric Minecraft servers
Find a file
2025-04-25 20:06:37 -04:00
.forgejo/workflows fix(ci): removed default branch name from artifact name 2025-04-23 20:18:19 -04:00
gradle/wrapper Initial commit 2025-04-23 19:49:37 -04:00
src feat: sqlite database support and generic database class 2025-04-25 20:06:37 -04:00
.gitattributes Initial commit 2025-04-23 19:49:37 -04:00
.gitignore Initial commit 2025-04-23 19:49:37 -04:00
build.gradle feat: add basic configuration management 2025-04-23 22:47:02 -04:00
gradle.properties Initial commit 2025-04-23 19:49:37 -04:00
gradlew Initial commit 2025-04-23 19:49:37 -04:00
gradlew.bat Initial commit 2025-04-23 19:49:37 -04:00
LICENSE Initial commit 2025-04-23 19:49:37 -04:00
README.md chore: add usage sections and notes to README.md 2025-04-25 19:16:49 -04:00
settings.gradle Initial commit 2025-04-23 19:49:37 -04:00

🔒 OAuth Fabric

OAuth2 authentication for Minecraft Fabric servers

Java

Note

Support for other mod loaders is not planned. PRs implementing such support will not be accepted, please fork this project instead.

Warning

This mod does not provide support for standard permission systems, and by default only verifies permissions by operator status (i.e. commands can only be run by operators).

Supported versions

Version Support level
1.20.1 Fully supported
* Not supported

Installing

Download the latest release from the releases tab or go to the latest release directly, you may optionally choose to build from source, then put it in your Fabric server's mods directory.

Usage

On initial load, this mod will create a commented configuration file. Edit the created file to contain the correct credentials for your OAuth provider, then restart the server.

Players who are not registered will be kicked on join and given a link to the OAuth provider, where they can login to register for the server.

Each new login with create a new session which will expire after a set period of time (usually defined by your OAuth provider).

Use the /oauth command to see a list of all available commands.

Building from source

Ensure that JDK 21 is installed and in your system path, then:

  • on Linux / macOS run:
chmod +x ./gradlew
./gradlew build
  • and on Windows run:
gradlew.bat build

Contributing

Fork this repository and create a branch for your changes, then create a pull request for the dev branch with a "why", "what", and "how" to explain your changes.