Fix https on simplesaml and remove /login

This commit is contained in:
2017-11-11 22:08:24 +01:00
parent 1258b68ef0
commit d18315aa39
3 changed files with 4 additions and 17 deletions

View File

@@ -1,14 +0,0 @@
<?php
require_once(__DIR__ . '/../../vendor/simplesamlphp/simplesamlphp/lib/_autoload.php');
$as = new SimpleSAML_Auth_Simple('default-sp');
$as->requireAuth();
$attributes = $as->getAttributes();
?>
<p>
Username: <?= $attributes["uid"][0]?><br>
Full name: <?= $attributes["cn"][0]?><br>
Email: <?= $attributes["mail"][0]?><br>
</p>
<a href="<?= htmlspecialchars($as->getLogoutURL("http://localhost:1080/")) ?>">logout</a>