From 731663e4c0880b6f3e01daa1096ac6d813d8f83e Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sun, 22 Oct 2017 17:32:54 +0200 Subject: [PATCH] Fixed logout --- dev.sh | 3 ++- www/login/index.php | 10 +++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/dev.sh b/dev.sh index 554450f..d60bd8c 100755 --- a/dev.sh +++ b/dev.sh @@ -7,7 +7,8 @@ if test \! -d vendor; then composer install cp -v dist/authsources_example.php vendor/simplesamlphp/simplesamlphp/config/authsources.php cp -v dist/saml20-idp-remote.php vendor/simplesamlphp/simplesamlphp/metadata/saml20-idp-remote.php - cp -v vendor/simplesamlphp/simplesamlphp/config-templates/config.php vendor/simplesamlphp/simplesamlphp/config/config.php + # cp -v vendor/simplesamlphp/simplesamlphp/config-templates/config.php vendor/simplesamlphp/simplesamlphp/config/config.php + sed -e "s/'trusted.url.domains' => array()/'trusted.url.domains' => array('localhost:1080')/g" < vendor/simplesamlphp/simplesamlphp/config-templates/config.php > vendor/simplesamlphp/simplesamlphp/config/config.php ln -s ../vendor/simplesamlphp/simplesamlphp/www/ www/simplesaml fi diff --git a/www/login/index.php b/www/login/index.php index 3cd8b45..65358ba 100644 --- a/www/login/index.php +++ b/www/login/index.php @@ -2,9 +2,13 @@ require_once(__DIR__ . '/../../vendor/simplesamlphp/simplesamlphp/lib/_autoload.php'); $as = new SimpleSAML_Auth_Simple('default-sp'); $as->requireAuth(); - $attributes = $as->getAttributes(); -print_r($attributes); ?> -test +

+ Username:
+ Full name:
+ Email:
+

+ +">logout