ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 
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 }
global $DIC
Definition: saml.php:7
auth($authSourceName='default-sp')
static getDataDir()
get data directory (outside webspace)
Class ilSamlAuthFactory.
Class ilSimpleSAMLphpWrapper.