ILIAS  release_8 Revision v8.24
class.ilAuthProvider.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
27abstract class ilAuthProvider implements ilAuthProviderInterface
28{
29 private const STATUS_UNDEFINED = 0;
32 private const STATUS_MIGRATION = 3;
33
34
36
38
40 private int $user_id = 0;
45 {
46 global $DIC;
47 $this->logger = $DIC->logger()->auth();
48 $this->credentials = $credentials;
49 }
50
55 public function getLogger(): ilLogger
56 {
57 return $this->logger;
58 }
59
64 {
65 return $this->credentials;
66 }
67
71 protected function handleAuthenticationFail(ilAuthStatus $status, string $a_reason): bool
72 {
74 $status->setReason($a_reason);
75 return false;
76 }
77}
Base class for authentication providers (ldap, apache, ...)
__construct(ilAuthCredentials $credentials)
Constructor.
getLogger()
Get logger.
handleAuthenticationFail(ilAuthStatus $status, string $a_reason)
Handle failed authentication.
ilAuthCredentials $credentials
Auth status implementation.
const STATUS_AUTHENTICATION_FAILED
Component logger with individual log levels by component id.
global $DIC
Definition: feed.php:28
Interface of auth credentials.
Standard interface for auth provider implementations.