ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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}
An exception for terminatinating execution or to throw for unit testing.
Class ilSamlAuthFactory.
auth($authSourceName='default-sp')
Class ilSimpleSAMLphpWrapper.
static getDataDir()
get data directory (outside webspace)
global $DIC
Definition: saml.php:7