Source of file SAMLHelper.php
Size: 0,620 Bytes - Last Modified: 2021-12-23T10:27:14+00:00
/var/www/docs.ssmods.com/process/src/code/helpers/SAMLHelper.php
12345678910111213141516171819202122232425262728293031 | <?php /** * Class SAMLHelper * * SAMLHelper acts as a simple wrapper for the OneLogin implementation, so that we can configure * and inject it via the config system. */ class SAMLHelper extends Object { /** * @var array */ public static $dependencies = [ 'SAMLConfService' => '%$SAMLConfService', ]; /** * @var SAMLConfService */ public $SAMLConfService; /** * @return OneLogin_Saml2_Auth */ public function getSAMLauth() { $samlConfig = $this->SAMLConfService->asArray(); return new \OneLogin_Saml2_Auth($samlConfig); } } |