CodeIgniter Forums
Integrating SAML - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11)
+--- Thread: Integrating SAML (/showthread.php?tid=75732)



Integrating SAML - omartoutounji - 03-10-2020

Hello, I am trying to integrate SAML with my CI app using config/autoload.php.

Below is the library I need throughout my CI app
PHP Code:
$path '/usr/share/simplesamlphp/lib';
set_include_path(get_include_path() . PATH_SEPARATOR $path);
require_once(
'_autoload.php'); 

I tried to insert the above code into config/autoload.php under "Auto-load packages" like this (I am not even sure if this is how I'm supposed to do it)

PHP Code:
$path '/usr/share/simplesamlphp/lib';
set_include_path(get_include_path() . PATH_SEPARATOR $path);

$autoload['packages'] = array($path.'_autoload''/usr/share/simplesamlphp/lib'); 
However, it is not working. Can anybody help me in trying to autoload SAML? I'd appreciate any help here.

Another alternative solution is to try this: https://forum.codeigniter.com/thread-72086.html