summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold Daniels <arnold@jasny.net>2015-10-26 16:30:48 -0400
committerArnold Daniels <arnold@jasny.net>2015-10-26 16:31:34 -0400
commitf7cc1365dfb8775d731d4d63c84a263069ce2a9f (patch)
treeff02cf33d58e50b44c19e41a1588917d923207fe
parente9e22bf5d3bc83d296e781320ee46ec4517a7ed8 (diff)
downloadsso-f7cc1365dfb8775d731d4d63c84a263069ce2a9f.zip
sso-f7cc1365dfb8775d731d4d63c84a263069ce2a9f.tar.gz
sso-f7cc1365dfb8775d731d4d63c84a263069ce2a9f.tar.bz2
Simple (json encode) output for use info
-rw-r--r--examples/broker/index.php11
1 files changed, 4 insertions, 7 deletions
diff --git a/examples/broker/index.php b/examples/broker/index.php
index 07ae5f5..4bdcc11 100644
--- a/examples/broker/index.php
+++ b/examples/broker/index.php
@@ -20,20 +20,17 @@ if (!$user) {
<html>
<head>
<title><?= $broker->broker ?> (Single Sign-On demo)</title>
- <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
+ <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
<h1><?= $broker->broker ?> <small>(Single Sign-On demo)</small></h1>
<h3>Logged in</h3>
-
- <dl class="dl-horizontal">
- <?php foreach ($user as $key => $value) : ?>
- <dt><?= $key ?></dt><dd><?= is_scalar($value) ? $value : var_dump($value) ?></dd>
- <?php endforeach; ?>
- </dl>
+ <pre><?= json_encode($user, JSON_PRETTY_PRINT); ?></pre>
+
<a id="logout" class="btn btn-default" href="login.php?logout=1">Logout</a>
</div>
</body>
</html>
+