@@ -5,6 +5,7 @@
|
|||||||
// Perform the OIDC authentication
|
// Perform the OIDC authentication
|
||||||
try {
|
try {
|
||||||
$oidc->authenticate();
|
$oidc->authenticate();
|
||||||
|
$_SESSION['access_token'] = $oidc->requestClientCredentialsToken()->access_token;
|
||||||
$oidc_user = array(
|
$oidc_user = array(
|
||||||
'sub' => $oidc->requestUserInfo('sub'),
|
'sub' => $oidc->requestUserInfo('sub'),
|
||||||
'username' => $oidc->requestUserInfo('preferred_username'),
|
'username' => $oidc->requestUserInfo('preferred_username'),
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
$PAGE_NAME = "Logging out...";
|
$PAGE_NAME = "Logging out...";
|
||||||
require_once __DIR__ . "/../../includes/prereqs.php";
|
require_once __DIR__ . "/../../includes/prereqs.php";
|
||||||
|
|
||||||
|
$access_token = $_SESSION['access_token'];
|
||||||
session_destroy();
|
session_destroy();
|
||||||
|
$oidc->signOut($access_token, $_ENV['APP_URL']);
|
||||||
header('Location: /');
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user