ILIAS  release_8 Revision v8.24
class.ilSamlAuthFactory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
27{
28 private const METADATA_PATH = 'auth/saml/config';
29
35 public function auth(string $authSourceName = 'default-sp'): ilSamlAuth
36 {
37 return new ilSimpleSAMLphpWrapper(
38 $authSourceName,
39 $this->getConfigDirectory()
40 );
41 }
42
47 public function getConfigDirectory(): 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 }
57}
static getDataDir()
get data directory (outside webspace)
Class ilSamlAuthFactory.
auth(string $authSourceName='default-sp')
Class ilSimpleSAMLphpWrapper.
global $DIC
Definition: feed.php:28
Interface ilSamlAuth.