Verification/authorization via Fediverse mod for minetest, based on (t)otp
Go to file
2023-10-05 20:07:46 +03:00
locale small localization for code message 2023-10-02 21:21:59 +03:00
textures fork creation done 2023-09-27 10:57:15 +00:00
.luacheckrc fork creation done 2023-09-27 10:57:15 +00:00
basexx.lua init 2023-01-28 12:04:14 +01:00
functions.lua removed qr generate png function, unused 2023-10-02 15:22:30 +03:00
init.lua use yl_matterbridge option disabled by default 2023-10-05 20:07:46 +03:00
join.lua Attempt be strongest: now chatcommands totally protected, include admin 2023-10-05 04:26:15 +03:00
license.txt another fix license... 2023-10-02 09:30:50 +03:00
mastoapi.lua small localization for code message 2023-10-02 21:21:59 +03:00
mod.conf security unlock code for admin 2023-10-05 19:57:46 +03:00
onboard.lua fixed formspec on enter 2023-10-03 15:46:22 +03:00
password_save.lua security unlock code for admin 2023-10-05 19:57:46 +03:00
priv_revoke.lua fork creation done 2023-09-27 10:57:15 +00:00
privs.lua Attempt be strongest: now chatcommands totally protected, include admin 2023-10-05 04:26:15 +03:00
readme.md Attempt be strongest: now chatcommands totally protected, include admin 2023-10-05 04:26:15 +03:00
screenshot1.jpg fork creation done 2023-09-27 10:57:15 +00:00
screenshot2.jpg fork creation done 2023-09-27 10:57:15 +00:00
screenshot3.jpg fork creation done 2023-09-27 10:57:15 +00:00
settingtypes.txt use yl_matterbridge option disabled by default 2023-10-05 20:07:46 +03:00

FediAuth mod for minetest

2FA via Fediverse account, based on https://content.minetest.net/packages/mt-mods/otp/

Overview

Lets Fediverse players use the /fediauth_on command to protect their account with a second factor.

Players that have the FediAuth enabled have to enter a verification code upon joining the game, the code will be sent to their account handle (@nick@example.com).

That mod requires add to secure.http_mods = fediauth for sending codes from service account (any mastodon API compatible instance)

Add fediauth.instance = example.com and fediauth.api_token = secret for work this mod.

Also you can enable fediauth.fedi_required option and players who not have fediverse account can't play on server

Screenshots

FediAuth verification form

FediAuth Setup form

FediAuth checkmark if verified success

Temporary privilege revocation

All of the privileges get revoked when logging in with the fediauth enabled (until the proper code is entered). Some exceptions:

  • fly (otherwise the player would literally fall from the sky)
  • noclip

To disable revokation on custom privs the field fediauth_keep can be set to true on the definition:

minetest.register_privilege("my_super_important_priv", {
    description = "something something",
    fediauth_keep = true
})

Links / References

Chatcommands

  • /fediauth_on Starts the FediAuth
  • /fediauth_off Disables the FediAuth login

Privileges

  • fediauth_enabled Players with this privilege have to verify the Fediverse code upon login (automatically granted on successful /fediauth_on)
  • fediauth_bypass Players with this privilege can bypass verification for any reason, and the privilege can only granted manually by administrator
  • fediauth_autorized This privilege for workaround protection chat commands, it can protect server administrator too

License

Textures: