26 "Microsoft-WebDAV-MiniRedir",
36 foreach ($this->session_aware_webdav_clients as $webdav_client_name) {
37 if (stristr($user_agent, $webdav_client_name)) {
51 $user_agent = isset(
$_SERVER[
"HTTP_USER_AGENT"]) ?
$_SERVER[
"HTTP_USER_AGENT"] :
"";
54 $user_agent = is_string($user_agent) ? $user_agent :
"";
71 if ($DIC[
'ilAuthSession']->isAuthenticated() && $DIC->user()->getId() != 0) {
79 include_once
'./Services/Authentication/classes/Frontend/class.ilAuthFrontendCredentialsHTTP.php';
81 $credentials->setUsername($a_username);
82 $credentials->setPassword($a_password);
84 include_once
'./Services/Authentication/classes/Provider/class.ilAuthProviderFactory.php';
86 $providers = $provider_factory->getProviders($credentials);
88 include_once
'./Services/Authentication/classes/class.ilAuthStatus.php';
91 include_once
'./Services/Authentication/classes/Frontend/class.ilAuthFrontendFactory.php';
94 $frontend = $frontend_factory->getFrontend(
95 $DIC[
'ilAuthSession'],
101 $frontend->authenticate();
103 switch ($status->getStatus()) {
105 ilLoggerFactory::getLogger(
'webdav')->debug(
'User authenticated through basic authentication. UserId = ' . $DIC->user()->getId());
static enableWebAccessWithoutSession($enable_web_access_without_session)
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
Class ilWebDAVAuthentication.
getUserAgent()
Gets the given user agent from the request.
$session_aware_webdav_clients
isUserAgentSessionAware($user_agent)
const STATUS_AUTHENTICATION_FAILED
Factory for auth frontend classes.
authenticate($a_username, $a_password)
Callback function.
const STATUS_AUTHENTICATED
static getInstance()
Get status instance.
static getLogger($a_component_id)
Get component logger.
const STATUS_ACCOUNT_MIGRATION_REQUIRED