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) {
80 $credentials->setUsername($a_username);
81 $credentials->setPassword($a_password);
84 $providers = $provider_factory->getProviders($credentials);
90 $frontend = $frontend_factory->getFrontend(
91 $DIC[
'ilAuthSession'],
97 $frontend->authenticate();
99 switch ($status->getStatus()) {
101 ilLoggerFactory::getLogger(
'webdav')->debug(
'User authenticated through basic authentication. UserId = ' . $DIC->user()->getId());
static enableWebAccessWithoutSession($enable_web_access_without_session)
Class ilWebDAVAuthentication.
isUserAgentSessionAware(string $user_agent)
getUserAgent()
Gets the given user agent from the request.
$session_aware_webdav_clients
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