Simplified Auth (BTA)

Simplified Auth (BTA)

Mod

Authorization for Better Than Adventure

Server SocialUtility

343 downloads
1 follower
Follow Save
90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

Simplified auth

This is server sided babric modification for Better Than Adventure that allows for authorization using ingame commands, such as /register or /login.
In current form only possible to use JSON file based "database". Sessions are supported.

Setup

  1. Mod to work would require working server instance of Babric BTA server (available here) with halplibe (which was by default included in BTA instance) installed.
  2. Don't forget about read/write privileges on server directory and any other directory specified by config (by default should be available for server but still, this can sometime happen)

Client-side issue

If you running server on babric v7.1-pre1a and babric v7.1-pre2a, players should also have the babric version.

Config

Currently config allows for setting only

  • DatabaseManager -specifies which database engine would be used for storing player data (currently only JSON file).
  • Address - when specified json dbmanager, Address would point to directory where "database" file would reside.
  • Schema - when specified json dbmanager, it would point at name of json file that would store usernames and encrypted passwords.
  • SessionLife - session lifetime in hours (default is 48). Available as an integer. If you specify -1, the session time will be unlimited (not recommended). Modification in json manager mode should by default create required paths and files.

Project members

Zaraz7

Member

Details

Licensed MIT
Published 10 months ago
Updated 10 months ago