|
5 months ago | |
---|---|---|
.docker | 5 months ago | |
OauthPlugin | 6 months ago | |
api | 6 months ago | |
.drone.yml | 6 months ago | |
.gitignore | 6 months ago | |
CHANGELOG.md | 6 months ago | |
LICENSE | 6 months ago | |
README.md | 6 months ago | |
RELEASE.md | 6 months ago | |
docker-compose.yml | 6 months ago |
This isnt technically oauth but oh well.
Compatible with Minecraft Client 1.7.X to 1.14.X and further through ViaVersion.
This server and plugin are meant to verify that an mc user exists and is valid.
Inspired by https://mc-oauth.net/. Head over to their description, seriously its a lot better.
We include a Docker setup out of the box with no configuration needed so you can just deploy this and forget about it.
docker-compose.yml
to your likings for the port mappings.docker-compose up -d
in the project root.curl -o BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
spigot.jar
in version 1.8.X (here 1.8.8 but any will work fine)java -Xmx1024M -jar BuildTools.jar --rev 1.8.8
/plugins
ViaVersion/plugins
ViaRewindInstall into /plugins
, either
mvn package
(project at OauthPlugin
)go get github.com/gorilla/mux
Build server.go
, either
go build server.go
java -jar spigot-1.8.jar
./server
Server will per default attach to port 80 (please use port forwarding in production).
GET /api/{token}
Response:
{"uuid":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","name":"lolthisalegituser"}
or none
MIT © Felix Soederhuyzen