ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilAuthProvider.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
11 abstract class ilAuthProvider implements ilAuthProviderInterface
12 {
13  const STATUS_UNDEFINED = 0;
16  const STATUS_MIGRATION = 3;
17 
18 
19  private $logger = null;
20 
21  private $credentials = null;
22 
23  private $status = self::STATUS_UNDEFINED;
24  private $user_id = 0;
29  {
30  $this->logger = ilLoggerFactory::getLogger('auth');
31  $this->credentials = $credentials;
32  }
33 
38  public function getLogger()
39  {
40  return $this->logger;
41  }
42 
46  public function getCredentials()
47  {
48  return $this->credentials;
49  }
50 
55  protected function handleAuthenticationFail(ilAuthStatus $status, $a_reason)
56  {
58  $status->setReason($a_reason);
59  return false;
60  }
61 }
Interface of auth credentials.
const STATUS_AUTHENTICATION_FAILED
Base class for authentication providers (radius, ldap, apache, ...)
Standard interface for auth provider implementations.
setStatus($a_status)
Set auth status.
setReason($a_reason)
Set reason.
getLogger()
Get logger.
handleAuthenticationFail(ilAuthStatus $status, $a_reason)
Handle failed authentication.
static getLogger($a_component_id)
Get component logger.
Auth status implementation.
__construct(ilAuthCredentials $credentials)
Constructor.