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