19 declare(strict_types=1);
37 $this->
logger = $DIC->logger()->auth();
45 $this->
logger->debug(
'Trying authentication against: ' . get_class($provider));
47 $provider->doAuthentication($this->
getStatus());
50 ->getAuthenticatedUserId());
57 $this->
logger->notice(
'Account migration required.');
62 $this->
logger->debug(
'Authentication failed against: ' . get_class($provider));
71 parent::handleAuthenticationFail();
74 header(
'HTTP/1.0 401 Unauthorized');
handleAuthenticationSuccess(ilAuthProviderInterface $provider)
const int STATUS_AUTHENTICATED
__construct(ilAuthSession $session, ilAuthStatus $status, ilAuthCredentials $credentials, array $providers)
const int STATUS_AUTHENTICATION_FAILED
handleAuthenticationFail()
ilAuthCredentials $credentials
__construct(Container $dic, ilPlugin $plugin)
const int STATUS_ACCOUNT_MIGRATION_REQUIRED