ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilSamlAuthFactory.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
3
7
class
ilSamlAuthFactory
8
{
9
const
METADATA_PATH
=
'auth/saml/config'
;
10
16
public
function
auth
($authSourceName =
'default-sp'
)
17
{
18
require_once
'Services/Saml/classes/class.ilSimpleSAMLphpWrapper.php'
;
19
return
new
ilSimpleSAMLphpWrapper
(
20
$authSourceName,
21
$this->
getConfigDirectory
()
22
);
23
}
24
29
public
function
getConfigDirectory
()
30
{
31
global
$DIC
;
32
33
$fs = $DIC->filesystem()->storage();
34
35
$fs->createDir(self::METADATA_PATH);
36
37
return
rtrim(
ilUtil::getDataDir
(),
'/'
) .
'/'
. self::METADATA_PATH;
38
}
39
}
$DIC
global $DIC
Definition:
saml.php:7
ilSamlAuthFactory\METADATA_PATH
const METADATA_PATH
Definition:
class.ilSamlAuthFactory.php:9
ilSamlAuthFactory\auth
auth($authSourceName='default-sp')
Definition:
class.ilSamlAuthFactory.php:16
ilUtil\getDataDir
static getDataDir()
get data directory (outside webspace)
Definition:
class.ilUtil.php:1521
ilSamlAuthFactory\getConfigDirectory
getConfigDirectory()
Definition:
class.ilSamlAuthFactory.php:29
ilSamlAuthFactory
Class ilSamlAuthFactory.
Definition:
class.ilSamlAuthFactory.php:7
php
ilSimpleSAMLphpWrapper
Class ilSimpleSAMLphpWrapper.
Definition:
class.ilSimpleSAMLphpWrapper.php:10
Services
Saml
classes
class.ilSamlAuthFactory.php
Generated on Thu Jan 16 2025 19:02:28 for ILIAS by
1.8.13 (using
Doxyfile
)