class DigestAuthentication extends AuthenticationHook

This class is being used exclusively for webdav requests and is not made public in the general authentication methods But we still want to keep the class / handling consistent - so we use the generic AuthenticationHook scheme

Constants

HOOK_PREFIX

Properties

Controller $mod

Instance providing the hook

from  BaseHook
array $_hook_info

Hook Information "id" => "4914" "instance_id" => "api_microsoft" "name" => "oauth_client" "hook" => "webservice.oauth_client" "type" => "object" "registry_name" => "oauth_client" "function_name" => "" "internal" => "no" "dep_mode" => "local" "active" => "yes" "title" => "Basic functions" "description" => "" "options" => ""

from  BaseHook
protected string $name

Name of authentication method

from  AuthenticationHook
protected string $description

Short description of authentication method

from  AuthenticationHook
protected int $ttl from  AuthenticationHook

Methods

bool
authenticate_user(string $userid, string $password)

User authentication is wrapped for Auth Hooks

bool
authorizeUserFromDigest(string $AuthorizationHeader)

No description

static string|null
generateNewDigestPasswordForUser(int|null $userId = null)

Generate new Digest for User

mixed
getAuthConfig(string $config_var)

Return configuration variable for auth method

static null|static
getAuthHook(string $hook_identifier = null)

Load Auth Method Hook without Access Check

string
getAuthID()

Get internal Auth ID

array
getConfigurationFDL()

No description

static string|null
getDigestPasswordForUser(int|null $userId = null)

Get current Digest for userId

string
getHookDescription()

No description

from  BaseHook
string
getHookIdentifier()

Get Hook identifier consists of instance_id puncto separator and hook name Ex. instance_id.name

from  BaseHook
array
getHookInfoValue(bool $key = false)

Return Hook information (ID, InstanceID, Name, Hook Type, Object Type, ...)

from  BaseHook
string
getHookInstance()

No description

from  BaseHook
string
getHookName()

No description

from  BaseHook
string
getHookTitle()

No description

from  BaseHook
getObject()

No description

from  BaseHook
mixed
getOption(string $key)

Returns the option with $key set in the config.yml

from  BaseHook
int
getSessionTTL()

No description

array
get_module_info()

Return Auth Method information as keyed array [name, description, config]

array
get_user_details()

No description

bool
isAvailable()

Show this authentication method if installed, even if its not configured yet

login(string $userid, string $password = null)

No description

void
onBeforeExecute()

Override in your auth method

static bool|null
removeDigestPasswordForUser(int|null $userId)

No description

sendAuthenticateHeader()

No description

void
setName(mixed $name)

No description

Details

in AuthenticationHook at line 83
final bool authenticate_user(string $userid, string $password)

User authentication is wrapped for Auth Hooks

Parameters

string $userid

Username as entered by user

string $password

Password as enetered by user

Return Value

bool

Returns true of authentication is valid

Exceptions

AuthenticationException

at line 61
bool authorizeUserFromDigest(string $AuthorizationHeader)

No description

Parameters

string $AuthorizationHeader

Return Value

bool

at line 158
static string|null generateNewDigestPasswordForUser(int|null $userId = null)

Generate new Digest for User

Parameters

int|null $userId

Return Value

string|null

in AuthenticationHook at line 132
final protected mixed getAuthConfig(string $config_var)

Return configuration variable for auth method

Parameters

string $config_var

Return Value

mixed

in AuthenticationHook at line 51
final static null|static getAuthHook(string $hook_identifier = null)

Load Auth Method Hook without Access Check

Parameters

string $hook_identifier

Return Value

null|static

Exceptions

Exception

in AuthenticationHook at line 142
final string getAuthID()

Get internal Auth ID

Return Value

string

at line 48
array getConfigurationFDL()

No description

Return Value

array

[ 'configoption' => [ 'type' => 'radio', 'label' => ("Choose a pill"), 'values' => array('b' => ("Blue"), 'r' => ("Red")) ] ]

Exceptions

Exception

at line 132
static string|null getDigestPasswordForUser(int|null $userId = null)

Get current Digest for userId

Parameters

int|null $userId

Return Value

string|null

in BaseHook at line 76
string getHookDescription()

No description

Return Value

string

in BaseHook at line 55
string getHookIdentifier()

Get Hook identifier consists of instance_id puncto separator and hook name Ex. instance_id.name

Return Value

string

in BaseHook at line 45
array getHookInfoValue(bool $key = false)

Return Hook information (ID, InstanceID, Name, Hook Type, Object Type, ...)

Parameters

bool $key

Return Value

array

in BaseHook at line 69
string getHookInstance()

No description

Return Value

string

in BaseHook at line 62
string getHookName()

No description

Return Value

string

in BaseHook at line 83
string getHookTitle()

No description

Return Value

string

in BaseHook at line 88
getObject()

No description

in BaseHook at line 97
mixed getOption(string $key)

Returns the option with $key set in the config.yml

Parameters

string $key

Return Value

mixed

in AuthenticationHook at line 70
int getSessionTTL()

No description

Return Value

int

Time in seconds until session can/should be considered expired

in AuthenticationHook at line 107
final array get_module_info()

Return Auth Method information as keyed array [name, description, config]

Return Value

array

in AuthenticationHook at line 95
final array get_user_details()

No description

Return Value

array

Returns an array containing all user information

at line 31
bool isAvailable()

Show this authentication method if installed, even if its not configured yet

Return Value

bool

at line 23
UserDetails|bool login(string $userid, string $password = null)

No description

Parameters

string $userid

Login of the user

string $password

Password entered in form (if applicable)

Return Value

UserDetails|bool

Exceptions

Exception

in AuthenticationHook at line 172
void onBeforeExecute()

Override in your auth method

Return Value

void

at line 176
static bool|null removeDigestPasswordForUser(int|null $userId)

No description

Parameters

int|null $userId

Return Value

bool|null

at line 52
sendAuthenticateHeader()

No description

in AuthenticationHook at line 17
void setName(mixed $name)

No description

Parameters

mixed $name

Return Value

void