19declare(strict_types=1);
 
   21use Psr\Http\Message\ServerRequestInterface;
 
   40        $this->
logger = $DIC->logger()->auth();
 
   53        $cmd = (string) ($this->httpRequest->getQueryParams()[
'cmd'] ?? 
'');
 
   55            $cmd = (string) ($this->httpRequest->getParsedBody()[
'cmd'] ?? 
'');
 
   58        if (
'force_login' === $cmd) {
 
   62        if (!$this->
getSettings()->get(
'apache_enable_auth', 
'0')) {
 
   66        if (!$this->
getSettings()->get(
'apache_auth_authenticate_on_login_page', 
'0')) {
 
   71            (defined(
'IL_CERT_SSO') && (
int) IL_CERT_SSO === 1) ||
 
   73            isset($this->httpRequest->getQueryParams()[
'passed_sso'])
 
   78        $path = (string) ($this->httpRequest->getServerParams()[
'REQUEST_URI'] ?? 
'');
 
   79        if (strpos(
$path, 
'/') === 0) {
 
   83        if (strpos(
$path, 
'http') !== 0) {
 
   84            $parts = parse_url(ILIAS_HTTP_PATH);
 
   88        $this->
ctrl->redirectToURL(
 
   90                './sso/index.php?force_mode_apache=1&' .
 
   91                'r=' . urlencode(
$path) .
 
   93                '&ilias_path=' . urlencode(ILIAS_HTTP_PATH)
 
  105        $mappingFieldName = $this->
getSettings()->get(
'apache_auth_username_direct_mapping_fieldname', 
'');
 
  108        $this->
logger->debug($mappingFieldName);
 
  110        switch ($this->
getSettings()->
get(
'apache_auth_username_config_type')) {
 
  112                if (isset($this->httpRequest->getServerParams()[$mappingFieldName])) {
 
  113                    $this->
setUsername($this->httpRequest->getServerParams()[$mappingFieldName]);
 
  125        $targetUrl = trim((
string) ($this->httpRequest->getQueryParams()[
'r'] ?? 
''));
 
  126        if ($targetUrl === 
'') {
 
  132        if (file_exists(
$path) && is_readable(
$path)) {
 
  133            foreach (file(
$path) as $line) {
 
  135                    $validDomains[] = trim($line);
 
Description of class class.
 
__construct(ServerRequestInterface $httpRequest, ilCtrl $ctrl)
 
ServerRequestInterface $httpRequest
 
tryAuthenticationOnLoginPage()
Check if an authentication attempt should be done when login page has been called.
 
setUsername(string $a_name)
Set username.
 
const APACHE_AUTH_TYPE_BY_FUNCTION
 
const APACHE_AUTH_TYPE_DIRECT_MAPPING
 
static supportsRedirects()
Are redirects supported?
 
Class ilCtrl provides processing control methods.
 
Component logger with individual log levels by component id.
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static getHtmlPath(string $relative_path)
get url of path
 
static appendUrlParameterString(string $a_url, string $a_par, bool $xml_style=false)
 
Class ilWhiteListUrlValidator.
 
if($clientAssertionType !='urn:ietf:params:oauth:client-assertion-type:jwt-bearer'|| $grantType !='client_credentials') $parts
 
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc