ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.ilSamlAuthFactory.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
use
ILIAS\Filesystem\Exception\IOException
;
22
23
final
class
ilSamlAuthFactory
24
{
25
private
const
string
METADATA_PATH
=
'auth/saml/config'
;
26
30
public
function
auth
(
string
$authSourceName =
'default-sp'
):
ilSamlAuth
31
{
32
return
new
ilSimpleSAMLphpWrapper
(
33
$authSourceName,
34
$this->
getConfigDirectory
()
35
);
36
}
37
41
public
function
getConfigDirectory
(): string
42
{
43
global
$DIC
;
44
45
$fs = $DIC->filesystem()->storage();
46
47
if
(!$fs->hasDir(self::METADATA_PATH)) {
48
$fs->createDir(self::METADATA_PATH);
49
}
50
51
return
rtrim(
ilFileUtils::getDataDir
(),
'/'
) .
'/'
. self::METADATA_PATH;
52
}
53
}
IOException
ilSamlAuthFactory\METADATA_PATH
const string METADATA_PATH
Definition:
class.ilSamlAuthFactory.php:25
ilSamlAuth
$DIC
global $DIC
Definition:
shib_login.php:26
ilSamlAuthFactory\auth
auth(string $authSourceName='default-sp')
Definition:
class.ilSamlAuthFactory.php:30
ilFileUtils\getDataDir
static getDataDir()
get data directory (outside webspace)
Definition:
class.ilFileUtils.php:250
ilSamlAuthFactory\getConfigDirectory
getConfigDirectory()
Definition:
class.ilSamlAuthFactory.php:41
ilSimpleSAMLphpWrapper
Definition:
class.ilSimpleSAMLphpWrapper.php:21
ilSamlAuthFactory
components
ILIAS
Saml
classes
class.ilSamlAuthFactory.php
Generated on Sun Aug 31 2025 23:03:38 for ILIAS by
1.8.13 (using
Doxyfile
)