ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilSamlAuthFactory.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
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(string $authSourceName = 'default-sp') : ilSamlAuth
17 {
18 return new ilSimpleSAMLphpWrapper(
19 $authSourceName,
20 $this->getConfigDirectory()
21 );
22 }
23
28 public function getConfigDirectory() : string
29 {
30 global $DIC;
31
32 $fs = $DIC->filesystem()->storage();
33
34 $fs->createDir(self::METADATA_PATH);
35
36 return rtrim(ilUtil::getDataDir(), '/') . '/' . self::METADATA_PATH;
37 }
38}
An exception for terminatinating execution or to throw for unit testing.
Class ilSamlAuthFactory.
auth(string $authSourceName='default-sp')
Class ilSimpleSAMLphpWrapper.
static getDataDir()
get data directory (outside webspace)
Interface ilSamlAuth.
$DIC
Definition: xapitoken.php:46