Options
Less than 1 minute
Options
class Options extends \Hazaar\Warlock\Server\Auth\StructProperties
method
The authentication method to use for client authentication.
public AuthMethod $method = 'AuthMethod'Supported values are:
- "none": Disable authentication (not recommended for production).
- "list": Use a static list of username/password pairs defined in the configuration.
- "basic": Use a BTree file as the authentication database (default).
- "script": Use an external script for authentication.
dbFile
public string $dbFilescriptPath
public string $scriptPathusers
An associative array of username => password pairs for authentication.
public array $usersNote: In a production environment, you should store hashed passwords instead of plain text for security reasons. This example uses plain text for simplicity and demonstration purposes only.
Generated by Hazaar API Doc Generator on Fri, 05 Jun 2026 06:08:15 +0000