Go to file
Buckaroo Banzai bdbd88424f
increase long poll timeout
2021-05-15 11:18:04 +02:00
.github/workflows luacheck ci 2019-12-03 08:14:30 +01:00
util increase long poll timeout 2021-05-15 11:18:04 +02:00
.luacheckrc updated readme and implemented custom_auth hook 2020-01-06 11:38:10 +01:00
auth.lua code tidy / update to new responses 2021-05-06 20:03:51 +02:00
init.lua code tidy / update to new responses 2021-05-06 20:03:51 +02:00
mod.conf code tidy / update to new responses 2021-05-06 20:03:51 +02:00
readme.md updated readme and implemented custom_auth hook 2020-01-06 11:38:10 +01:00
settingtypes.txt code tidy / update to new responses 2021-05-06 20:03:51 +02:00
tan.lua import from combined repo 2019-08-15 10:19:25 +02:00

readme.md

Authorization mod for minetest

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

Overview

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

Installing

compatibility

If xban2 is available, the banned flag on the xban-database is additionally checked on login

API

Custom auth handler

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

minetest.conf

Example usage:

secure.http_mods = auth_proxy_mod
auth_proxy.url = http://127.0.0.1:8080