To be used with https://github.com/minetest-auth-proxy/auth_proxy_app
Lets third-party apps query username and password of ingame players
- Copy/Clone the files into the
worldmods
folder - Install and start https://github.com/minetest-auth-proxy/auth_proxy_app
If xban2
is available, the banned
flag on the xban-database is additionally
checked on login
Additional checks besides the user/password can be implemented with a custom handler function
Example: require a priv to login:
auth_proxy.custom_handler = function(name)
if minetest.check_player_privs(name, "mypriv") then
return true
else
return false, "Missing priv: 'mypriv'"
end
end
Example usage:
secure.http_mods = auth_proxy_mod
auth_proxy.url = http://127.0.0.1:8080