ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ilSamlAuthFactory Class Reference

Class ilSamlAuthFactory. More...

+ Collaboration diagram for ilSamlAuthFactory:

Public Member Functions

 auth (string $authSourceName='default-sp')
 
 getConfigDirectory ()
 

Private Attributes

const METADATA_PATH = 'auth/saml/config'
 

Detailed Description

Class ilSamlAuthFactory.

Definition at line 26 of file class.ilSamlAuthFactory.php.

Member Function Documentation

◆ auth()

ilSamlAuthFactory::auth ( string  $authSourceName = 'default-sp')
Exceptions
Exception

Definition at line 33 of file class.ilSamlAuthFactory.php.

References getConfigDirectory().

33  : ilSamlAuth
34  {
35  return new ilSimpleSAMLphpWrapper(
36  $authSourceName,
37  $this->getConfigDirectory()
38  );
39  }
Class ilSimpleSAMLphpWrapper.
+ Here is the call graph for this function:

◆ getConfigDirectory()

ilSamlAuthFactory::getConfigDirectory ( )
Exceptions
IOException

Definition at line 44 of file class.ilSamlAuthFactory.php.

References $DIC, and ilFileUtils\getDataDir().

Referenced by auth().

44  : string
45  {
46  global $DIC;
47 
48  $fs = $DIC->filesystem()->storage();
49 
50  if (!$fs->hasDir(self::METADATA_PATH)) {
51  $fs->createDir(self::METADATA_PATH);
52  }
53 
54  return rtrim(ilFileUtils::getDataDir(), '/') . '/' . self::METADATA_PATH;
55  }
global $DIC
Definition: shib_login.php:25
static getDataDir()
get data directory (outside webspace)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ METADATA_PATH

const ilSamlAuthFactory::METADATA_PATH = 'auth/saml/config'
private

Definition at line 28 of file class.ilSamlAuthFactory.php.


The documentation for this class was generated from the following file: