19 declare(strict_types=1);
33 $this->
logger = $DIC->logger()->auth();
41 $this->
logger->debug(
'Trying authentication against: ' . get_class($provider));
43 $provider->doAuthentication($this->
getStatus());
46 ->getAuthenticatedUserId());
53 $this->
logger->notice(
"Account migration required.");
58 $this->
logger->debug(
'Authentication failed against: ' . get_class($provider));
70 header(
"WWW-Authenticate: Basic realm=\"" .
CLIENT_ID .
"\"");
71 header(
'HTTP/1.0 401 Unauthorized');
getProviders()
Get providers.
Interface of auth credentials.
const STATUS_AUTHENTICATION_FAILED
handleAuthenticationSuccess(ilAuthProviderInterface $provider)
Handle successful authentication.
resetStatus()
Reset status.
__construct(ilAuthSession $session, ilAuthStatus $status, ilAuthCredentials $credentials, array $providers)
Interface for auth methods (web form, http, ...)
authenticate()
Try authentication.
handleAuthenticationFail()
Draw basic auth.
ilAuthCredentials $credentials
const STATUS_AUTHENTICATED
__construct(Container $dic, ilPlugin $plugin)
Auth status implementation.
const STATUS_ACCOUNT_MIGRATION_REQUIRED