ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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')
Parameters
string$authSourceName
Returns
ilSamlAuth
Exceptions
Exception

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

References getConfigDirectory().

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

◆ getConfigDirectory()

ilSamlAuthFactory::getConfigDirectory ( )
Returns
string
Exceptions
IOException

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

References $DIC, and ilFileUtils\getDataDir().

Referenced by auth().

47  : string
48  {
49  global $DIC;
50 
51  $fs = $DIC->filesystem()->storage();
52 
53  $fs->createDir(self::METADATA_PATH);
54 
55  return rtrim(ilFileUtils::getDataDir(), '/') . '/' . self::METADATA_PATH;
56  }
global $DIC
Definition: feed.php:28
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: