ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.ilAuthProvider.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
abstract
class
ilAuthProvider
implements
ilAuthProviderInterface
22
{
23
private
ilLogger
$logger
;
24
private
ilAuthCredentials
$credentials
;
25
26
public
function
__construct
(
ilAuthCredentials
$credentials)
27
{
28
global
$DIC
;
29
$this->
logger
= $DIC->logger()->auth();
30
$this->credentials =
$credentials
;
31
}
32
33
public
function
getLogger
():
ilLogger
34
{
35
return
$this->logger
;
36
}
37
38
public
function
getCredentials
():
ilAuthCredentials
39
{
40
return
$this->credentials
;
41
}
42
43
protected
function
handleAuthenticationFail
(
ilAuthStatus
$status,
string
$a_reason): bool
44
{
45
$status->
setStatus
(
ilAuthStatus::STATUS_AUTHENTICATION_FAILED
);
46
$status->
setReason
($a_reason);
47
return
false
;
48
}
49
}
ilLogger
ilAuthCredentials
Definition:
interface.ilAuthCredentials.php:21
ilAuthStatus
ilAuthProvider\$logger
ilLogger $logger
Definition:
class.ilAuthProvider.php:23
ilAuthProvider\handleAuthenticationFail
handleAuthenticationFail(ilAuthStatus $status, string $a_reason)
Definition:
class.ilAuthProvider.php:43
ilAuthProvider
Definition:
class.ilAuthProvider.php:21
ilAuthProviderInterface
Definition:
interface.ilAuthProviderInterface.php:21
ilAuthProvider\getCredentials
getCredentials()
Definition:
class.ilAuthProvider.php:38
ilAuthStatus\setStatus
setStatus(int $a_status)
Set auth status.
Definition:
class.ilAuthStatus.php:63
$DIC
global $DIC
Definition:
shib_login.php:26
ilAuthProvider\$credentials
ilAuthCredentials $credentials
Definition:
class.ilAuthProvider.php:24
ilAuthStatus\STATUS_AUTHENTICATION_FAILED
const int STATUS_AUTHENTICATION_FAILED
Definition:
class.ilAuthStatus.php:29
ilAuthProvider\getLogger
getLogger()
Definition:
class.ilAuthProvider.php:33
ILIAS\Repository\logger
logger()
Definition:
trait.GlobalDICDomainServices.php:71
ilAuthStatus\setReason
setReason(string $a_reason)
Set reason.
Definition:
class.ilAuthStatus.php:81
ilAuthProvider\__construct
__construct(ilAuthCredentials $credentials)
Definition:
class.ilAuthProvider.php:26
components
ILIAS
Authentication
classes
Provider
class.ilAuthProvider.php
Generated on Sun Aug 31 2025 23:02:08 for ILIAS by
1.8.13 (using
Doxyfile
)