diff --git a/docs/source/simplesamlphp-sp.xml b/docs/source/simplesamlphp-sp.xml index 6c6df9fe3987211780954351bf07880facaa4a77..f21449f92ece93c1c433d9eb15c80e405b2de81c 100644 --- a/docs/source/simplesamlphp-sp.xml +++ b/docs/source/simplesamlphp-sp.xml @@ -877,7 +877,7 @@ require_once('SimpleSAML/XHTML/Template.php'); <programlisting>/* Load simpleSAMLphp, configuration and metadata */ $config = SimpleSAML_Configuration::getInstance(); -$session = SimpleSAML_Session::getInstance(true);</programlisting> +$session = SimpleSAML_Session::getInstance();</programlisting> <para>Then check whether the session is valid. If not, redirect the user to the IdP, specifying the <filename>initSSO.php</filename> script (for diff --git a/lib/SimpleSAML/Consent/ConsentStorage.php b/lib/SimpleSAML/Consent/ConsentStorage.php index fedc765add6dd8aecec90c0dae47eb3ae38ae1ef..74ed7e592e67a343ab05228054f4ccb072370d23 100644 --- a/lib/SimpleSAML/Consent/ConsentStorage.php +++ b/lib/SimpleSAML/Consent/ConsentStorage.php @@ -41,7 +41,7 @@ class SimpleSAML_Consent_Storage { $this->dbh = new PDO($pdo_connect, $pdo_user, $pdo_passwd, array( PDO::ATTR_PERSISTENT => false)); } catch(Exception $exception) { - $session = SimpleSAML_Session::getInstance(TRUE); + $session = SimpleSAML_Session::getInstance(); SimpleSAML_Utilities::fatalError($session->getTrackID(), 'PROCESSASSERTION', $exception); } //$this->dbh->setAttribute('PDO::ATTR_TIMEOUT', 5); diff --git a/lib/SimpleSAML/Logger.php b/lib/SimpleSAML/Logger.php index dac2109d090b70f42263d11aa45974a40aaaea24..b5c20d7df2a65da527f985055765b2d925fd536f 100644 --- a/lib/SimpleSAML/Logger.php +++ b/lib/SimpleSAML/Logger.php @@ -174,7 +174,7 @@ class SimpleSAML_Logger { self::$trackid = self::$TRACKID_FETCHING; /* Get the current session. This could cause recursion back to the logger class. */ - $session = SimpleSAML_Session::getInstance(TRUE); + $session = SimpleSAML_Session::getInstance(); /* Update the trackid. */ self::$trackid = $session->getTrackId(); diff --git a/www/admin/memcachestat.php b/www/admin/memcachestat.php index 0260049cb302431d8257fc1b2d7b10685e925eb7..aa346e1fb079179150b0df68696d52c7d554cba1 100644 --- a/www/admin/memcachestat.php +++ b/www/admin/memcachestat.php @@ -11,7 +11,7 @@ require_once((isset($SIMPLESAML_INCPREFIX)?$SIMPLESAML_INCPREFIX:'') . 'SimpleSA try { $config = SimpleSAML_Configuration::getInstance(); - $session = SimpleSAML_Session::getInstance(true); + $session = SimpleSAML_Session::getInstance(); /* Make sure that the user has admin access rights. */ if (!isset($session) || !$session->isValid('login-admin') ) { diff --git a/www/admin/metadata.php b/www/admin/metadata.php index 0c7f982f965e49abf33382ae18326ae4c4b6437b..d4177f772ce6edb02b61d913560770cac3cb6393 100644 --- a/www/admin/metadata.php +++ b/www/admin/metadata.php @@ -9,7 +9,7 @@ require_once((isset($SIMPLESAML_INCPREFIX)?$SIMPLESAML_INCPREFIX:'') . 'SimpleSA /* Load simpleSAMLphp, configuration and metadata */ $config = SimpleSAML_Configuration::getInstance(); -$session = SimpleSAML_Session::getInstance(true); +$session = SimpleSAML_Session::getInstance(); /* Check if valid local session exists.. */ diff --git a/www/admin/phpinfo.php b/www/admin/phpinfo.php index c62d8a617eef045f680e8ca88ebd67e1ffb313b3..134fe0b501dae42c576f9bfb10dc85fedb68baff 100644 --- a/www/admin/phpinfo.php +++ b/www/admin/phpinfo.php @@ -8,7 +8,7 @@ require_once((isset($SIMPLESAML_INCPREFIX)?$SIMPLESAML_INCPREFIX:'') . 'SimpleSA try { $config = SimpleSAML_Configuration::getInstance(); - $session = SimpleSAML_Session::getInstance(true); + $session = SimpleSAML_Session::getInstance(); /* Make sure that the user has admin access rights. */ if (!isset($session) || !$session->isValid('login-admin') ) { diff --git a/www/admin/test.php b/www/admin/test.php index 18eee7719a4bc35a277a1546aa2ae6ef3f289045..7f255bb1e7727d6f80c5a423990bba1ccadfae4a 100644 --- a/www/admin/test.php +++ b/www/admin/test.php @@ -83,7 +83,7 @@ foreach ($_GET as $k => $v) { if ($op === 'login') { - $session = SimpleSAML_Session::getInstance(TRUE); + $session = SimpleSAML_Session::getInstance(); /* Initialize SSO if we aren't authenticated. */ if (!$session->isValid($protocol) ) { diff --git a/www/aselect/handler.php b/www/aselect/handler.php index 1e333023487cf69da7004e3bc314eb2ca47d5e9b..db27749c1536950bda98b5f911731b782fccbeb8 100644 --- a/www/aselect/handler.php +++ b/www/aselect/handler.php @@ -415,7 +415,7 @@ function as_request_bridge_return() { } $parms = as_call($url); - $session = SimpleSAML_Session::getInstance(true); + $session = SimpleSAML_Session::getInstance(); $session->doLogin('aselect'); if (array_key_exists('attributes', $parms)) { diff --git a/www/auth/login-auto.php b/www/auth/login-auto.php index 037ca237b2f8c4a81fbae7377834df46f35a5230..c1dbebce5585742e782b932b7a133247b4dbc0f1 100644 --- a/www/auth/login-auto.php +++ b/www/auth/login-auto.php @@ -66,7 +66,7 @@ usleep($delay_login * 1000); /* Load the session of the current user. */ -$session = SimpleSAML_Session::getInstance(true); +$session = SimpleSAML_Session::getInstance(); if($session == NULL) { SimpleSAML_Utilities::fatalError($session->getTrackID(), 'NOSESSION'); } diff --git a/www/auth/login-cas-ldap.php b/www/auth/login-cas-ldap.php index 28362d40fc0b11d3deec08ffa53ea244e26b32e1..7afd978ea0cd16e77778e1d04050406b6751d636 100755 --- a/www/auth/login-cas-ldap.php +++ b/www/auth/login-cas-ldap.php @@ -18,7 +18,7 @@ require_once((isset($SIMPLESAML_INCPREFIX)?$SIMPLESAML_INCPREFIX:'') . 'SimpleSA require_once((isset($SIMPLESAML_INCPREFIX)?$SIMPLESAML_INCPREFIX:'') . 'SimpleSAML/Metadata/MetaDataStorageHandler.php'); $config = SimpleSAML_Configuration::getInstance(); -$session = SimpleSAML_Session::getInstance(TRUE); +$session = SimpleSAML_Session::getInstance(); try { $metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler(); diff --git a/www/auth/login-feide.php b/www/auth/login-feide.php index 7c488582fd8325c6b4ed8e5eb1fee92de6c17f9c..303b82df6f9faff83f36223787bf7bebdd7444c5 100644 --- a/www/auth/login-feide.php +++ b/www/auth/login-feide.php @@ -31,7 +31,7 @@ require_once((isset($SIMPLESAML_INCPREFIX)?$SIMPLESAML_INCPREFIX:'') . 'SimpleSA $config = SimpleSAML_Configuration::getInstance(); $ldapconfig = $config->copyFromBase('loginfeide', 'config-login-feide.php'); $metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler(); -$session = SimpleSAML_Session::getInstance(TRUE); +$session = SimpleSAML_Session::getInstance(); SimpleSAML_Logger::info('AUTH - ldap-feide: Accessing auth endpoint login-feide'); diff --git a/www/auth/login-tlsclient.php b/www/auth/login-tlsclient.php index a1b6e4c640a16c814018ce7d33e983a2c0c0704c..cf3f01df04c79a230b4128396bf09db641c21d5a 100644 --- a/www/auth/login-tlsclient.php +++ b/www/auth/login-tlsclient.php @@ -12,7 +12,7 @@ require_once((isset($SIMPLESAML_INCPREFIX)?$SIMPLESAML_INCPREFIX:'') . 'SimpleSA $config = SimpleSAML_Configuration::getInstance(); $metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler(); -$session = SimpleSAML_Session::getInstance(true); +$session = SimpleSAML_Session::getInstance(); SimpleSAML_Logger::info('AUTH - ldap: Accessing auth endpoint login'); diff --git a/www/auth/login-wayf-ldap.php b/www/auth/login-wayf-ldap.php index ac29fa66515232e01167939436ab8b680db6a161..56d51cb0efdb93b9d6e79ac8a54467ea6537c61f 100755 --- a/www/auth/login-wayf-ldap.php +++ b/www/auth/login-wayf-ldap.php @@ -19,7 +19,7 @@ require_once((isset($SIMPLESAML_INCPREFIX)?$SIMPLESAML_INCPREFIX:'') . 'SimpleSA $config = SimpleSAML_Configuration::getInstance(); -$session = SimpleSAML_Session::getInstance(TRUE); +$session = SimpleSAML_Session::getInstance(); try { $metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler(); diff --git a/www/auth/login.php b/www/auth/login.php index 57cea79e39c5221b39f4f442693815ad73ba32d4..dcefc91304751b7d3e6407c11fe22ee8ae0bb8fe 100644 --- a/www/auth/login.php +++ b/www/auth/login.php @@ -12,7 +12,7 @@ require_once((isset($SIMPLESAML_INCPREFIX)?$SIMPLESAML_INCPREFIX:'') . 'SimpleSA $config = SimpleSAML_Configuration::getInstance(); $metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler(); -$session = SimpleSAML_Session::getInstance(TRUE); +$session = SimpleSAML_Session::getInstance(); SimpleSAML_Logger::info('AUTH - ldap: Accessing auth endpoint login'); diff --git a/www/authmemcookie.php b/www/authmemcookie.php index d76274b573de72d99e458a1c77999e24b5201644..7fdc7a5e1a637af8bc57fb2b2e74e323a15e4dde 100644 --- a/www/authmemcookie.php +++ b/www/authmemcookie.php @@ -19,7 +19,7 @@ require_once((isset($SIMPLESAML_INCPREFIX)?$SIMPLESAML_INCPREFIX:'') . 'SimpleSA try { /* Load simpleSAMLphp configuration. */ $globalConfig = SimpleSAML_Configuration::getInstance(); - $session = SimpleSAML_Session::getInstance(TRUE); + $session = SimpleSAML_Session::getInstance(); /* Check if this module is enabled. */ if(!$globalConfig->getValue('enable.authmemcookie', FALSE)) { diff --git a/www/example-simple/hostnames.php b/www/example-simple/hostnames.php index 8df549f769eec7e37a5fb22216d72f1188e08d43..ef8e248f25f3f71fe9d051f1e6720506606847cc 100644 --- a/www/example-simple/hostnames.php +++ b/www/example-simple/hostnames.php @@ -13,7 +13,7 @@ require_once((isset($SIMPLESAML_INCPREFIX)?$SIMPLESAML_INCPREFIX:'') . 'SimpleSA /* Load simpleSAMLphp, configuration */ $config = SimpleSAML_Configuration::getInstance(); -$session = SimpleSAML_Session::getInstance(true); +$session = SimpleSAML_Session::getInstance(); /* Check if valid local session exists.. */ if (!isset($session) || !$session->isValid('login-admin') ) { diff --git a/www/example-simple/saml2-example.php b/www/example-simple/saml2-example.php index 05dab6f7611933a1c714a1dd395835a2a44e1979..332c72b97d3c902b30a5e9cb0bc1a2fd45dc2ebb 100644 --- a/www/example-simple/saml2-example.php +++ b/www/example-simple/saml2-example.php @@ -17,7 +17,7 @@ require_once((isset($SIMPLESAML_INCPREFIX)?$SIMPLESAML_INCPREFIX:'') . 'SimpleSA /* Load simpleSAMLphp, configuration and metadata */ $config = SimpleSAML_Configuration::getInstance(); -$session = SimpleSAML_Session::getInstance(TRUE); +$session = SimpleSAML_Session::getInstance(); /** * Check if valid local session exists, and the authority is the SAML 2.0 SP diff --git a/www/example-simple/shib13-example.php b/www/example-simple/shib13-example.php index dbbf689c1aaa433482a2ef998182ec3c394db22f..b11f529d1b9ae1d0501b9cefb5c85d90b90731d8 100644 --- a/www/example-simple/shib13-example.php +++ b/www/example-simple/shib13-example.php @@ -17,7 +17,7 @@ require_once((isset($SIMPLESAML_INCPREFIX)?$SIMPLESAML_INCPREFIX:'') . 'SimpleSA /* Load simpleSAMLphp, configuration and metadata */ $config = SimpleSAML_Configuration::getInstance(); -$session = SimpleSAML_Session::getInstance(TRUE); +$session = SimpleSAML_Session::getInstance(); /** * Check if valid local session exists, and the authority is the Shib 1.3 SP diff --git a/www/index.php b/www/index.php index 1da305b073ecaf6df208456ba9acb32d8243d5ea..c611b88aacda97383b4e5c7d1a68b0629369b2d6 100644 --- a/www/index.php +++ b/www/index.php @@ -10,7 +10,7 @@ require_once((isset($SIMPLESAML_INCPREFIX)?$SIMPLESAML_INCPREFIX:'') . 'SimpleSA /* Load simpleSAMLphp, configuration */ $config = SimpleSAML_Configuration::getInstance(); -$session = SimpleSAML_Session::getInstance(true); +$session = SimpleSAML_Session::getInstance(); /* Check if valid local session exists.. */ if ($config->getValue('admin.protectindexpage', false)) { diff --git a/www/noconsent.php b/www/noconsent.php index a2337dbc9d97cc2f15b97914e7cd72934c30419a..352063dc38b2ac8afd96dbf538892e1dd7ab90a7 100644 --- a/www/noconsent.php +++ b/www/noconsent.php @@ -6,7 +6,7 @@ require_once((isset($SIMPLESAML_INCPREFIX)?$SIMPLESAML_INCPREFIX:'') . 'SimpleSA /* Load simpleSAMLphp, configuration */ $config = SimpleSAML_Configuration::getInstance(); -$session = SimpleSAML_Session::getInstance(true); +$session = SimpleSAML_Session::getInstance(); $t = new SimpleSAML_XHTML_Template($config, 'noconsent.php'); $t->show(); diff --git a/www/openid/provider/server.php b/www/openid/provider/server.php index b3c563c71cde0ea3f663857b62b9be55857a7c70..0901f87ac4e75a366f6c6f6cf293746986322145 100644 --- a/www/openid/provider/server.php +++ b/www/openid/provider/server.php @@ -97,7 +97,7 @@ function action_default() $t->data['openidserver'] = $metadata->getGenerated('server', 'openid-provider'); - $session = SimpleSAML_Session::getInstance(true); + $session = SimpleSAML_Session::getInstance(); $useridfield = $config->getValue('openid.userid_attributename'); $delegationprefix = $config->getValue('openid.delegation_prefix'); @@ -218,7 +218,7 @@ function check_authenticated_user() { $config = SimpleSAML_Configuration::getInstance(); $metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler(); - $session = SimpleSAML_Session::getInstance(true); + $session = SimpleSAML_Session::getInstance(); $idpentityid = $metadata->getMetaDataCurrentEntityID('openid-provider'); $idpmeta = $metadata->getMetaDataCurrent('openid-provider'); diff --git a/www/saml2/idp/SSOService.php b/www/saml2/idp/SSOService.php index 0ba29fca88170e2cf4272b12896dbddd4b0e4057..da0ab98e20d31a6b45a688ec63b9a1191e2a20a1 100644 --- a/www/saml2/idp/SSOService.php +++ b/www/saml2/idp/SSOService.php @@ -26,7 +26,7 @@ require_once((isset($SIMPLESAML_INCPREFIX)?$SIMPLESAML_INCPREFIX:'') . 'SimpleSA $config = SimpleSAML_Configuration::getInstance(); $metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler(); -$session = SimpleSAML_Session::getInstance(TRUE); +$session = SimpleSAML_Session::getInstance(); try { $idpentityid = $metadata->getMetaDataCurrentEntityID('saml20-idp-hosted'); diff --git a/www/saml2/idp/metadata.php b/www/saml2/idp/metadata.php index 52aecdd841e416f30c415f44a28a55ae806138da..1ffa8d010d1a49de7e8a7cbad753a3351e29087c 100644 --- a/www/saml2/idp/metadata.php +++ b/www/saml2/idp/metadata.php @@ -12,7 +12,7 @@ require_once((isset($SIMPLESAML_INCPREFIX)?$SIMPLESAML_INCPREFIX:'') . 'xmlsecli /* Load simpleSAMLphp, configuration and metadata */ $config = SimpleSAML_Configuration::getInstance(); $metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler(); -$session = SimpleSAML_Session::getInstance(true); +$session = SimpleSAML_Session::getInstance(); if (!$config->getValue('enable.saml20-idp', false)) SimpleSAML_Utilities::fatalError($session->getTrackID(), 'NOACCESS'); diff --git a/www/saml2/sp/AssertionConsumerService.php b/www/saml2/sp/AssertionConsumerService.php index e1445896d7be49017ad2b780ed834a2bfa7be100..1078fdadc62fe99dbda1daa320fede05f37aec16 100644 --- a/www/saml2/sp/AssertionConsumerService.php +++ b/www/saml2/sp/AssertionConsumerService.php @@ -27,7 +27,7 @@ $config = SimpleSAML_Configuration::getInstance(); /* Get the session object for the user. Create a new session if no session * exists for this user. */ -$session = SimpleSAML_Session::getInstance(TRUE); +$session = SimpleSAML_Session::getInstance(); SimpleSAML_Logger::info('SAML2.0 - SP.AssertionConsumerService: Accessing SAML 2.0 SP endpoint AssertionConsumerService'); diff --git a/www/saml2/sp/SingleLogoutService.php b/www/saml2/sp/SingleLogoutService.php index b42dfb21c1fcdc8c21753e9c2d16abffa7784ae6..a56371c440e7f518499024f9414c2d8ae1750a4d 100644 --- a/www/saml2/sp/SingleLogoutService.php +++ b/www/saml2/sp/SingleLogoutService.php @@ -17,7 +17,7 @@ $config = SimpleSAML_Configuration::getInstance(); $metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler(); // Get the local session -$session = SimpleSAML_Session::getInstance(true); +$session = SimpleSAML_Session::getInstance(); SimpleSAML_Logger::info('SAML2.0 - SP.SingleLogoutService: Accessing SAML 2.0 SP endpoint SingleLogoutService'); diff --git a/www/saml2/sp/initSSO.php b/www/saml2/sp/initSSO.php index 3d50b4dcc000c51859e0cc5c9c249db7248d54b4..cd1dae9cafca90a66ad956a8a2a1a416b910af40 100644 --- a/www/saml2/sp/initSSO.php +++ b/www/saml2/sp/initSSO.php @@ -12,7 +12,7 @@ require_once((isset($SIMPLESAML_INCPREFIX)?$SIMPLESAML_INCPREFIX:'') . 'SimpleSA $config = SimpleSAML_Configuration::getInstance(); $metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler(); -$session = SimpleSAML_Session::getInstance(TRUE); +$session = SimpleSAML_Session::getInstance(); SimpleSAML_Logger::info('SAML2.0 - SP.initSSO: Accessing SAML 2.0 SP initSSO script'); diff --git a/www/saml2/sp/metadata.php b/www/saml2/sp/metadata.php index 4348c023c62ae693ef11a37f390473b4cd8baa1a..6f8458d69ec6347aecbc4464c4fc8335324d50b6 100644 --- a/www/saml2/sp/metadata.php +++ b/www/saml2/sp/metadata.php @@ -10,7 +10,7 @@ require_once((isset($SIMPLESAML_INCPREFIX)?$SIMPLESAML_INCPREFIX:'') . 'SimpleSA /* Load simpleSAMLphp, configuration and metadata */ $config = SimpleSAML_Configuration::getInstance(); $metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler(); -$session = SimpleSAML_Session::getInstance(TRUE); +$session = SimpleSAML_Session::getInstance(); if (!$config->getValue('enable.saml20-sp', false)) diff --git a/www/shib13/idp/SSOService.php b/www/shib13/idp/SSOService.php index 05e7295593f2f264aaf051d89ec2066b5ab2377e..d4f84ebf2f37aabaefee22ac360f0b49de281788 100644 --- a/www/shib13/idp/SSOService.php +++ b/www/shib13/idp/SSOService.php @@ -25,7 +25,7 @@ require_once((isset($SIMPLESAML_INCPREFIX)?$SIMPLESAML_INCPREFIX:'') . 'SimpleSA $config = SimpleSAML_Configuration::getInstance(); $metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler(); -$session = SimpleSAML_Session::getInstance(true); +$session = SimpleSAML_Session::getInstance(); SimpleSAML_Logger::info('Shib1.3 - IdP.SSOService: Accessing Shibboleth 1.3 IdP endpoint SSOService'); diff --git a/www/shib13/idp/metadata.php b/www/shib13/idp/metadata.php index 137b1afa1704865b4a85a8c6082d06068e6a452f..a58f17a3cfc7fd8d11a79def08de3cac3631dd46 100644 --- a/www/shib13/idp/metadata.php +++ b/www/shib13/idp/metadata.php @@ -12,7 +12,7 @@ require_once((isset($SIMPLESAML_INCPREFIX)?$SIMPLESAML_INCPREFIX:'') . 'xmlsecli /* Load simpleSAMLphp, configuration and metadata */ $config = SimpleSAML_Configuration::getInstance(); $metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler(); -$session = SimpleSAML_Session::getInstance(true); +$session = SimpleSAML_Session::getInstance(); if (!$config->getValue('enable.shib13-idp', false)) SimpleSAML_Utilities::fatalError($session->getTrackID(), 'NOACCESS'); diff --git a/www/shib13/sp/AssertionConsumerService.php b/www/shib13/sp/AssertionConsumerService.php index c789efd18d6f609c628c29de8743dec8ed80fafa..c2318e685ab1c2df49a0b4c3a2dbbbcc7b7dc201 100644 --- a/www/shib13/sp/AssertionConsumerService.php +++ b/www/shib13/sp/AssertionConsumerService.php @@ -13,7 +13,7 @@ require_once((isset($SIMPLESAML_INCPREFIX)?$SIMPLESAML_INCPREFIX:'') . 'SimpleSA $config = SimpleSAML_Configuration::getInstance(); -$session = SimpleSAML_Session::getInstance(TRUE); +$session = SimpleSAML_Session::getInstance(); SimpleSAML_Logger::info('Shib1.3 - SP.AssertionConsumerService: Accessing Shibboleth 1.3 SP endpoint AssertionConsumerService'); diff --git a/www/shib13/sp/metadata.php b/www/shib13/sp/metadata.php index ecdcde4cb7a2750c8565febf160f32f8eb9870ca..58e509321924eccda8c66f55718bc4c8e4ae6e15 100644 --- a/www/shib13/sp/metadata.php +++ b/www/shib13/sp/metadata.php @@ -10,7 +10,7 @@ require_once((isset($SIMPLESAML_INCPREFIX)?$SIMPLESAML_INCPREFIX:'') . 'SimpleSA /* Load simpleSAMLphp, configuration and metadata */ $config = SimpleSAML_Configuration::getInstance(); $metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler(); -$session = SimpleSAML_Session::getInstance(TRUE); +$session = SimpleSAML_Session::getInstance(); if (!$config->getValue('enable.shib13-sp', false))