OIDC test - test jumbojett oidc round two try autologin
This commit is contained in:
1 parent
49d2e818d0
commit
5ec16d4cbc
1 file changed
+4
-3
+4
-3
@@ -1,12 +1,13 @@
|
||||
<?php
|
||||
//session_start();
|
||||
session_start();
|
||||
$config = require __DIR__ . '/../config.php';
|
||||
|
||||
if (!isset($_SESSION['authenticated'])) {
|
||||
// User not logged in – show a login button
|
||||
// echo '<h1>Welcome to the demo</h1>';
|
||||
// echo '<p><a href="auth.php">Login with Authelia SSO</a></p>';
|
||||
$login = require __DIR__ . "/auth.php";
|
||||
header('Location: auth.php');
|
||||
exit;
|
||||
}
|
||||
|
||||
// The user is logged in – display the attributes
|
||||
@@ -20,4 +21,4 @@ echo '<li><strong>Email:</strong> ' . htmlspecialchars($email) . '</li>';
|
||||
echo '<li><strong>Groups:</strong> ' . htmlspecialchars(implode(', ', $groups)) . '</li>';
|
||||
echo '</ul>';
|
||||
|
||||
echo '<p><a href="logout.php">Logout</a></p>';
|
||||
// echo '<p><a href="logout.php">Logout</a></p>';
|
||||
Reference in new issue
Block a user