\Pydio\OCS\Server\DavAuthSharingBackend

Class AuthSharingBackend

Summary

Methods
Properties
Constants
__construct()
authenticate()
$shareData
No constants found
validateUserPass()
No protected properties found
N/A
No private methods found
$context
N/A

Properties

$shareData

$shareData : array

Type

array

Methods

__construct()

__construct(\Pydio\Core\Model\ContextInterface  $context) 

OCS_DavAuthSharingBackend constructor.

Parameters

\Pydio\Core\Model\ContextInterface $context

Repository object will be updated once authentication is passed

authenticate()

authenticate(\Sabre\DAV\Server  $server, string  $realm) : boolean

Authenticates the user based on the current request.

If authentication is successful, true must be returned. If authentication fails, an exception must be thrown.

Parameters

\Sabre\DAV\Server $server
string $realm

Throws

\Sabre\DAV\Exception\NotAuthenticated

Returns

boolean

validateUserPass()

validateUserPass(string  $username, string  $password) : mixed

Validates a username and password

This method should return true or false depending on if login succeeded.

Parameters

string $username
string $password

Returns

mixed —

AJXP_User|bool