parse_htdigest


Description:

[ Version ( since = "1.16" ) ]
public bool parse_htdigest (string path, Token token)

Parse the contents of the file at path and enable the privileges listed in token for the users it describes.

The format of the file is expected to match the format described by https://en.wikipedia.org/wiki/Digest_access_authentication#The_.htdigest_file, as output by the `htdigest` command.

Parameters:

path

Path to the htdigest file

token

authorisation token

Returns:

true if the file was successfully parsed, false otherwise.