ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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
11abstract class ilAuthProvider
12{
17
18
19 private $logger = null;
20
21 private $credentials = null;
22
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
62
63}
64?>
An exception for terminatinating execution or to throw for unit testing.
Base class for authentication providers (radius, ldap, apache, ...)
__construct(ilAuthCredentials $credentials)
Constructor.
getLogger()
Get logger.
handleAuthenticationFail(ilAuthStatus $status, $a_reason)
Handle failed authentication.
Auth status implementation.
const STATUS_AUTHENTICATION_FAILED
static getLogger($a_component_id)
Get component logger.
Interface of auth credentials.