ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilSamlAuthFactory Class Reference
+ Collaboration diagram for ilSamlAuthFactory:

Public Member Functions

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

Private Attributes

const METADATA_PATH = 'auth/saml/config'
 

Detailed Description

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

Member Function Documentation

◆ auth()

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

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

References getConfigDirectory().

30  : ilSamlAuth
31  {
32  return new ilSimpleSAMLphpWrapper(
33  $authSourceName,
34  $this->getConfigDirectory()
35  );
36  }
+ Here is the call graph for this function:

◆ getConfigDirectory()

ilSamlAuthFactory::getConfigDirectory ( )
Exceptions
IOException

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

References $DIC, and ilFileUtils\getDataDir().

Referenced by auth().

41  : 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  }
global $DIC
Definition: shib_login.php:22
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 25 of file class.ilSamlAuthFactory.php.


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