ILIAS  release_7 Revision v7.30-3-g800a261c036
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)
global $DIC
Definition: goto.php:24
Interface ilSamlAuth.