ILIAS  trunk Revision v13.0_alpha-52-g21c366bbdd4
class.ilAuthenticationSetupAgent.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21use ILIAS\Authentication\Setup\AbandonCASAuthModeUpdateObjective;
23use ILIAS\Setup;
25
27{
28 use Setup\Agent\HasNoNamedObjective;
29
30 protected const int DEFAULT_SESSION_EXPIRE_IN_SECONDS = 1_800;
31
32 public function __construct(protected Refinery\Factory $refinery)
33 {
34 }
35
36 public function hasConfig(): bool
37 {
38 return true;
39 }
40
42 {
43 return $this->refinery->custom()->transformation(function ($data): ilAuthenticationSetupConfig {
44 return new ilAuthenticationSetupConfig($data['session_max_idle'] ?? self::DEFAULT_SESSION_EXPIRE_IN_SECONDS);
45 });
46 }
47
48 public function getInstallObjective(?Setup\Config $config = null): Setup\Objective
49 {
51 'Authentication',
52 true,
54 $config ?? new ilAuthenticationSetupConfig(self::DEFAULT_SESSION_EXPIRE_IN_SECONDS)
55 ),
57 );
58 }
59
60 public function getUpdateObjective(?Setup\Config $config = null): Setup\Objective
61 {
62 if ($config !== null) {
64 'Authentication',
65 true,
68 );
69 }
70
72 }
73
75 {
77 }
78
79 public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
80 {
82 }
83
84 public function getMigrations(): array
85 {
86 return [];
87 }
88}
Creates the secret key used to encrypt the session reminder tokens.
Builds a Color from either hex- or rgb values.
Definition: Factory.php:31
A objective collection is a objective that is achieved once all subobjectives are achieved.
A non-objective, nothing to do to achieve it...
__construct(protected Refinery\Factory $refinery)
getInstallObjective(?Setup\Config $config=null)
getStatusObjective(Setup\Metrics\Storage $storage)
getUpdateObjective(?Setup\Config $config=null)
A transformation is a function from one datatype to another.
A agent is some component that performs part of the setup process.
Definition: Agent.php:30
A configuration for the setup.
Definition: Config.php:27
An objective is a desired state of the system that is supposed to be created by the setup.
Definition: Objective.php:31
Storage is simple key/value store without further schema definition.
Definition: Storage.php:30
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$data
Definition: storeScorm.php:45