mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +00:00
Add SAML addon.
This commit is contained in:
parent
f04493b5bb
commit
4b3b79c894
62 changed files with 16277 additions and 0 deletions
34
saml/vendor/onelogin/php-saml/_toolkit_loader.php
vendored
Normal file
34
saml/vendor/onelogin/php-saml/_toolkit_loader.php
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
|
||||
// Create an __autoload function
|
||||
// (can conflicts other autoloaders)
|
||||
// http://php.net/manual/en/language.oop5.autoload.php
|
||||
|
||||
// Load composer vendor folder if any
|
||||
if (file_exists(__DIR__ . '/vendor/autoload.php')) {
|
||||
require __DIR__ . '/vendor/autoload.php';
|
||||
}
|
||||
|
||||
/*
|
||||
// Load xmlseclibs
|
||||
|
||||
$xmlseclibsSrcDir = '';
|
||||
|
||||
include_once $xmlseclibsSrcDir.'/XMLSecEnc.php';
|
||||
include_once $xmlseclibsSrcDir.'/XMLSecurityDSig.php';
|
||||
include_once $xmlseclibsSrcDir.'/XMLSecurityKey.php';
|
||||
include_once $xmlseclibsSrcDir.'/Utils/XPath.php';
|
||||
*/
|
||||
|
||||
|
||||
// Load php-saml
|
||||
$libDir = __DIR__ . '/src/Saml2/';
|
||||
|
||||
$folderInfo = scandir($libDir);
|
||||
|
||||
foreach ($folderInfo as $element) {
|
||||
if (is_file($libDir.$element) && (substr($element, -4) === '.php')) {
|
||||
include_once $libDir.$element;
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue