ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ 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
26
final
class
ilSamlAuthFactory
27
{
28
private
const
METADATA_PATH
=
'auth/saml/config'
;
29
33
public
function
auth
(
string
$authSourceName =
'default-sp'
):
ilSamlAuth
34
{
35
return
new
ilSimpleSAMLphpWrapper
(
36
$authSourceName,
37
$this->
getConfigDirectory
()
38
);
39
}
40
44
public
function
getConfigDirectory
(): string
45
{
46
global
$DIC
;
47
48
$fs = $DIC->filesystem()->storage();
49
50
$fs->createDir(self::METADATA_PATH);
51
52
return
rtrim(
ilFileUtils::getDataDir
(),
'/'
) .
'/'
. self::METADATA_PATH;
53
}
54
}
IOException
ilSamlAuthFactory\METADATA_PATH
const METADATA_PATH
Definition:
class.ilSamlAuthFactory.php:28
$DIC
global $DIC
Definition:
feed.php:28
ilSamlAuth
ilSamlAuthFactory\auth
auth(string $authSourceName='default-sp')
Definition:
class.ilSamlAuthFactory.php:33
ilFileUtils\getDataDir
static getDataDir()
get data directory (outside webspace)
Definition:
class.ilFileUtils.php:243
ilSamlAuthFactory\getConfigDirectory
getConfigDirectory()
Definition:
class.ilSamlAuthFactory.php:44
ilSimpleSAMLphpWrapper
Class ilSimpleSAMLphpWrapper.
Definition:
class.ilSimpleSAMLphpWrapper.php:25
ilSamlAuthFactory
Services
Saml
classes
class.ilSamlAuthFactory.php
Generated on Wed Sep 10 2025 14:11:52 for ILIAS by
1.8.13 (using
Doxyfile
)