Skip to content
Newer
Older
100755 30 lines (24 sloc) 523 Bytes
4f290e1 @yeco first commit
authored
1 <?php
2 require_once("sso.php");
3
4 $sso = new vraiSSO_Broker();
5 $user = $sso->getInfo();
6
7 if (!$user) {
8 header("Location: login.php", true, 307);
9 exit;
10 }
11
12 ?>
13
14 <html>
15 <head>
16 <title>vraiSSO Single Sign-On demo (<?= $sso->broker ?>)</title>
17 </head>
18 <body>
19 <h1>vraiSSO Single Sign-On demo</h1>
20 <h2><?= $sso->broker ?></h2>
21
22 <dl>
23 <? foreach($user as $key=>$value) : ?>
24 <dt><?= $key ?></dt><dd><?= $value ?></dd>
25 <? endforeach; ?>
26 </dl>
27 <a href="login.php?logout=1">Logout</a>
28 </body>
29 </html>
Something went wrong with that request. Please try again.