🔒 Force Single Logout (#77)
Signed-off-by: Luke Tainton <luke@tainton.uk>
This commit was merged in pull request #77.
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
// Perform the OIDC authentication
|
||||
try {
|
||||
$oidc->authenticate();
|
||||
$_SESSION['access_token'] = $oidc->requestClientCredentialsToken()->access_token;
|
||||
$oidc_user = array(
|
||||
'sub' => $oidc->requestUserInfo('sub'),
|
||||
'username' => $oidc->requestUserInfo('preferred_username'),
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
$PAGE_NAME = "Logging out...";
|
||||
require_once __DIR__ . "/../../includes/prereqs.php";
|
||||
|
||||
$access_token = $_SESSION['access_token'];
|
||||
session_destroy();
|
||||
|
||||
header('Location: /');
|
||||
$oidc->signOut($access_token, $_ENV['APP_URL']);
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user