lib/private/User/Session.php
/**
	 * Tries to login the user with HTTP Basic Authentication
	 *
	 * @todo do not allow basic auth if the user is 2FA enforced
	 * @param IRequest $request
	 * @param OC\Security\Bruteforce\Throttler $throttler
	 * @return boolean if the login was successful
	 */
Tries to login the user with HTTP Basic Authentication
@todo do not allow basic auth if the user is 2FA enforced
@param IRequest $request
@param OC\Security\Bruteforce\Throttler $throttler
@return boolean if the login was successful
Tries to login the user with HTTP Basic Authentication @todo do not allow basic auth if the user is 2FA enforced @param IRequest $request @param OC \ Security \ Bruteforce \ Throttler $throttler @return boolean if the login was successful
public function tryBasicAuthLogin(IRequest $request,
									  OC\Security\Bruteforce\Throttler $throttler) {
		if (!empty($request->server['PHP_AUTH_USER']) && !empty($request->server['PHP_AUTH_PW'])) {
			try {
				if ($this->logClientIn($request->server['PHP_AUTH_USER'], $request->server['PHP_AUTH_PW'], $request, $throttler)) {
					$this->session->set(
						Auth::DAV_AUTHENTICATED, $this->getUser()->getUID()
					);
					 $this->session->set('last-password-confirm', $this->timeFactory->getTime());
					return true;
				}
			} catch (PasswordLoginForbiddenException $ex) {
			}
		}
		return false;
	}
public function tryBasicAuthLogin ( IRequest $ request , OC \ Security \ Bruteforce \ Throttler $ throttler ) { if ( ! empty ( $ request -> server [ 'PHP_AUTH_USER' ] ) && ! empty ( $ request -> server [ 'PHP_AUTH_PW' ] ) ) { try { if ( $ this -> logClientIn ( $ request -> server [ 'PHP_AUTH_USER' ] , $ request -> server [ 'PHP_AUTH_PW' ] , $ request , $ throttler ) ) { $ this -> session -> set ( Auth :: DAV_AUTHENTICATED , $ this -> getUser ( ) -> getUID ( ) ) ; $ this -> session -> set ( 'last-password-confirm' , $ this -> timeFactory -> getTime ( ) ) ; return true ; } } catch ( PasswordLoginForbiddenException $ ex ) { } } return false ; }
Tries to login the user with HTTP Basic Authentication
 @todo do not allow basic auth if the user is 2FA enforced
 @param IRequest $request
 @param OC\Security\Bruteforce\Throttler $throttler
 @return boolean if the login was successful
Tries to login the user with HTTP Basic Authentication @todo do not allow basic auth if the user is 2FA enforced @param IRequest $request @param OC \ Security \ Bruteforce \ Throttler $throttler @return boolean if the login was successful
/**
					 * Add DAV authenticated. This should in an ideal world not be
					 * necessary but the iOS App reads cookies from anywhere instead
					 * only the DAV endpoint.
					 * This makes sure that the cookies will be valid for the whole scope
					 * @see https://github.com/owncloud/core/issues/22893
					 */ // Set the last-password-confirm session to make the sudo mode work // Nothing to do