ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilSamlAuthFactory Class Reference

Class ilSamlAuthFactory. More...

+ Collaboration diagram for ilSamlAuthFactory:

Public Member Functions

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

Data Fields

const METADATA_PATH = 'auth/saml/config'
 

Detailed Description

Class ilSamlAuthFactory.

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

Member Function Documentation

◆ auth()

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

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

References getConfigDirectory().

17  {
18  require_once 'Services/Saml/classes/class.ilSimpleSAMLphpWrapper.php';
19  return new ilSimpleSAMLphpWrapper(
20  $authSourceName,
21  $this->getConfigDirectory()
22  );
23  }
Class ilSimpleSAMLphpWrapper.
+ Here is the call graph for this function:

◆ getConfigDirectory()

ilSamlAuthFactory::getConfigDirectory ( )
Returns
string
Exceptions

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

References $DIC, and ilUtil\getDataDir().

Referenced by auth().

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  }
global $DIC
Definition: saml.php:7
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'

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


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