ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilAuthProvider Class Reference

Base class for authentication providers (ldap, apache, ...) More...

+ Inheritance diagram for ilAuthProvider:
+ Collaboration diagram for ilAuthProvider:

Public Member Functions

 __construct (ilAuthCredentials $credentials)
 Constructor. More...
 
 getLogger ()
 Get logger. More...
 
 getCredentials ()
 
- Public Member Functions inherited from ilAuthProviderInterface
 doAuthentication (\ilAuthStatus $status)
 Do authentication. More...
 

Protected Member Functions

 handleAuthenticationFail (ilAuthStatus $status, string $a_reason)
 Handle failed authentication. More...
 

Private Attributes

const STATUS_UNDEFINED = 0
 
const STATUS_AUTHENTICATION_SUCCESS = 1
 
const STATUS_AUTHENTICATION_FAILED = 2
 
const STATUS_MIGRATION = 3
 
ilLogger $logger
 
ilAuthCredentials $credentials
 
int $status = self::STATUS_UNDEFINED
 
int $user_id = 0
 

Detailed Description

Base class for authentication providers (ldap, apache, ...)

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e

Definition at line 27 of file class.ilAuthProvider.php.

Constructor & Destructor Documentation

◆ __construct()

ilAuthProvider::__construct ( ilAuthCredentials  $credentials)

Constructor.

Definition at line 44 of file class.ilAuthProvider.php.

References $credentials, $DIC, and ILIAS\Repository\logger().

45  {
46  global $DIC;
47  $this->logger = $DIC->logger()->auth();
48  $this->credentials = $credentials;
49  }
global $DIC
Definition: shib_login.php:22
ilAuthCredentials $credentials
+ Here is the call graph for this function:

Member Function Documentation

◆ getCredentials()

◆ getLogger()

◆ handleAuthenticationFail()

Field Documentation

◆ $credentials

ilAuthCredentials ilAuthProvider::$credentials
private

Definition at line 37 of file class.ilAuthProvider.php.

Referenced by __construct(), and getCredentials().

◆ $logger

ilLogger ilAuthProvider::$logger
private

Definition at line 35 of file class.ilAuthProvider.php.

Referenced by getLogger().

◆ $status

int ilAuthProvider::$status = self::STATUS_UNDEFINED
private

◆ $user_id

int ilAuthProvider::$user_id = 0
private

◆ STATUS_AUTHENTICATION_FAILED

const ilAuthProvider::STATUS_AUTHENTICATION_FAILED = 2
private

Definition at line 31 of file class.ilAuthProvider.php.

◆ STATUS_AUTHENTICATION_SUCCESS

const ilAuthProvider::STATUS_AUTHENTICATION_SUCCESS = 1
private

Definition at line 30 of file class.ilAuthProvider.php.

◆ STATUS_MIGRATION

const ilAuthProvider::STATUS_MIGRATION = 3
private

Definition at line 32 of file class.ilAuthProvider.php.

◆ STATUS_UNDEFINED

const ilAuthProvider::STATUS_UNDEFINED = 0
private

Definition at line 29 of file class.ilAuthProvider.php.


The documentation for this class was generated from the following file: