auth_proxy_app/readme.md
2020-02-18 07:23:04 +01:00

1.1 KiB

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 npm install && npm start