Options
Less than 1 minute
Options
class Options extends \Hazaar\Model\StructExtends: Hazaar\Model\Struct
Properties
method
The authentication method to use for client authentication.
public AuthMethod $method = 'AuthMethod'Type: Hazaar\Warlock\Server\Enum\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 $dbFileType: string
scriptPath
public string $scriptPathType: string
users
An associative array of username => password pairs for authentication.
public array $usersType: array
Note: 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, 04 Sep 2026 23:32:17 +0000