2017-10-22 15:37:03 +02:00
|
|
|
<?php
|
|
|
|
require_once(__DIR__ . '/../../vendor/simplesamlphp/simplesamlphp/lib/_autoload.php');
|
|
|
|
$as = new SimpleSAML_Auth_Simple('default-sp');
|
|
|
|
$as->requireAuth();
|
|
|
|
$attributes = $as->getAttributes();
|
|
|
|
?>
|
|
|
|
|
2017-10-22 17:32:54 +02:00
|
|
|
<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>
|