final public function requireBasicLogin($realm = 'Restricted')
	{
		if (! (
			array_key_exists('PHP_AUTH_USER', $_SERVER)
			and array_key_exists('PHP_AUTH_PW', $_SERVER)
		)) {
			$this->_basicAuthFailed($realm);
		} else {
			$this->loginWith([
				'user' => $_SERVER['PHP_AUTH_USER'],
				'password' => $_SERVER['PHP_AUTH_PW']
			]);

			if (! $this->logged_in) {
				$this->_basicAuthFailed($realm);
			}
		}
	}