Go to file
BuckarooBanzay a0f80cae71 extend emitter test 2021-09-15 13:41:12 +02:00
.github go rulez 2021-05-06 20:10:02 +02:00
eventemitter extend emitter test 2021-09-15 13:41:12 +02:00
mediawiki/AuthMinetest import from combined repo 2019-08-15 10:18:48 +02:00
types refactor code 2021-09-03 08:02:15 +02:00
.gitignore cleanup 2021-05-06 20:30:15 +02:00
Dockerfile Bump alpine from 3.13.4 to 3.14.2 2021-09-03 13:06:12 +02:00
api.go refactor code 2021-09-03 08:02:15 +02:00
go.mod go rulez 2021-05-06 20:10:02 +02:00
loginhandler.go refactor code 2021-09-03 08:02:15 +02:00
main.go refactor code 2021-09-03 08:02:15 +02:00
readme.md go rulez 2021-05-06 20:10:02 +02:00
util.go refactor code 2021-09-03 08:02:15 +02:00

readme.md

Authorization proxy app for minetest

To be used with https://github.com/minetest-auth-proxy/auth_proxy_mod

Overview

Lets third-party apps query username and password of ingame players

Docker

Run with docker:

docker run --rm -it -p 8080:8080 minetestauth/minetest-auth-proxy

Implementations

Mediawiki

Thanks to gpcf (linuxforks) for his partial Mediawiki implementation! See the folder: mediawiki

cURL

curl -X POST -H 'Content-Type: application/json' -i 'http://127.0.0.1:8080/api/login' --data '{"username":"test","password":"enter"}'

Returns

On success:

{"success": true, "message": null}

On failure:

{"success": false, "message": "Banned!"}

Or just:

{"success": false, "message": ""}

Building / Running

A Dockerfile is included for container usage.

Otherwise just go run . (needs a working go installation)