diff --git a/.gitignore b/.gitignore index 7d017cf..f4e68cb 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ 3rdparty/vendor/onelogin/php-saml/demo-old/ 3rdparty/vendor/onelogin/php-saml/docs/ 3rdparty/vendor/onelogin/php-saml/tests/ +3rdparty/vendor/onelogin/php-saml/endpoints/ diff --git a/3rdparty/vendor/onelogin/php-saml/endpoints/acs.php b/3rdparty/vendor/onelogin/php-saml/endpoints/acs.php deleted file mode 100644 index 4b1ac24..0000000 --- a/3rdparty/vendor/onelogin/php-saml/endpoints/acs.php +++ /dev/null @@ -1,51 +0,0 @@ -processResponse(); - -$errors = $auth->getErrors(); - -if (!empty($errors)) { - print_r('

'.implode(', ', $errors).'

'); - exit(); -} - -if (!$auth->isAuthenticated()) { - echo "

Not authenticated

"; - exit(); -} - -$_SESSION['samlUserdata'] = $auth->getAttributes(); -$_SESSION['IdPSessionIndex'] = $auth->getSessionIndex(); -if (isset($_POST['RelayState']) && OneLogin_Saml2_Utils::getSelfURL() != $_POST['RelayState']) { - $auth->redirectTo($_POST['RelayState']); -} - -$attributes = $_SESSION['samlUserdata']; - -if (!empty($attributes)) { - echo '

'._('User attributes:').'

'; - echo ''; - foreach ($attributes as $attributeName => $attributeValues) { - echo ''; - } - echo '
'._('Name').''._('Values').'
'.htmlentities($attributeName).'
    '; - foreach ($attributeValues as $attributeValue) { - echo '
  • '.htmlentities($attributeValue).'
  • '; - } - echo '
'; - if (!empty($_SESSION['IdPSessionIndex'])) { - echo '

The SessionIndex of the IdP is: '.$_SESSION['IdPSessionIndex'].'

'; - } -} else { - echo _('Attributes not found'); -} diff --git a/3rdparty/vendor/onelogin/php-saml/endpoints/metadata.php b/3rdparty/vendor/onelogin/php-saml/endpoints/metadata.php deleted file mode 100644 index 68ccfde..0000000 --- a/3rdparty/vendor/onelogin/php-saml/endpoints/metadata.php +++ /dev/null @@ -1,25 +0,0 @@ -getSettings(); - $metadata = $settings->getSPMetadata(); - $errors = $settings->validateMetadata($metadata); - if (empty($errors)) { - header('Content-Type: text/xml'); - echo $metadata; - } else { - throw new OneLogin_Saml2_Error( - 'Invalid SP metadata: '.implode(', ', $errors), - OneLogin_Saml2_Error::METADATA_SP_INVALID - ); - } -} catch (Exception $e) { - echo $e->getMessage(); -} diff --git a/3rdparty/vendor/onelogin/php-saml/endpoints/sls.php b/3rdparty/vendor/onelogin/php-saml/endpoints/sls.php deleted file mode 100644 index d6b7e4d..0000000 --- a/3rdparty/vendor/onelogin/php-saml/endpoints/sls.php +++ /dev/null @@ -1,21 +0,0 @@ -processSLO(); - -$errors = $auth->getErrors(); - -if (empty($errors)) { - print_r('Sucessfully logged out'); -} else { - print_r(implode(', ', $errors)); -}