Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/user_saml.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-11-24 12:12:07 +0300
committerLukas Reschke <lukas@statuscode.ch>2016-11-24 12:12:07 +0300
commitc56bb495d3a04198da10cb8ed2c0ebedf8558acd (patch)
treee753b1bd1d9c86657703d1a35cd9d8e52d4035a0 /3rdparty
parenta616f1d238b6a836fe5e332502f410c9a2b0adcf (diff)
Add endpoints to .gitignore
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to '3rdparty')
-rw-r--r--3rdparty/vendor/onelogin/php-saml/endpoints/acs.php51
-rw-r--r--3rdparty/vendor/onelogin/php-saml/endpoints/metadata.php25
-rw-r--r--3rdparty/vendor/onelogin/php-saml/endpoints/sls.php21
3 files changed, 0 insertions, 97 deletions
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 4b1ac242..00000000
--- a/3rdparty/vendor/onelogin/php-saml/endpoints/acs.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-
-/**
- * SP Assertion Consumer Service Endpoint
- */
-
-session_start();
-
-require_once dirname(dirname(__FILE__)).'/_toolkit_loader.php';
-
-$auth = new OneLogin_Saml2_Auth();
-
-$auth->processResponse();
-
-$errors = $auth->getErrors();
-
-if (!empty($errors)) {
- print_r('<p>'.implode(', ', $errors).'</p>');
- exit();
-}
-
-if (!$auth->isAuthenticated()) {
- echo "<p>Not authenticated</p>";
- 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 '<h1>'._('User attributes:').'</h1>';
- echo '<table><thead><th>'._('Name').'</th><th>'._('Values').'</th></thead><tbody>';
- foreach ($attributes as $attributeName => $attributeValues) {
- echo '<tr><td>'.htmlentities($attributeName).'</td><td><ul>';
- foreach ($attributeValues as $attributeValue) {
- echo '<li>'.htmlentities($attributeValue).'</li>';
- }
- echo '</ul></td></tr>';
- }
- echo '</tbody></table>';
- if (!empty($_SESSION['IdPSessionIndex'])) {
- echo '<p>The SessionIndex of the IdP is: '.$_SESSION['IdPSessionIndex'].'</p>';
- }
-} 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 68ccfde6..00000000
--- a/3rdparty/vendor/onelogin/php-saml/endpoints/metadata.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-
-/**
- * SP Metadata Endpoint
- */
-
-require_once dirname(dirname(__FILE__)).'/_toolkit_loader.php';
-
-try {
- $auth = new OneLogin_Saml2_Auth();
- $settings = $auth->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 d6b7e4da..00000000
--- a/3rdparty/vendor/onelogin/php-saml/endpoints/sls.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-/**
- * SP Single Logout Service Endpoint
- */
-
-session_start();
-
-require_once dirname(dirname(__FILE__)).'/_toolkit_loader.php';
-
-$auth = new OneLogin_Saml2_Auth();
-
-$auth->processSLO();
-
-$errors = $auth->getErrors();
-
-if (empty($errors)) {
- print_r('Sucessfully logged out');
-} else {
- print_r(implode(', ', $errors));
-}