OIDC test

This commit is contained in:
matt committed 2026-10-23 03:22:30 -07:00
1 parent fd79a027a2
commit 965d2d084a
9 files changed
+259

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
require_once __DIR__ . '/config.php';
// Destroy the PHP session.
session_start();
session_destroy();
// Redirect the user to Authelia’s logout endpoint.
// Authelia will clean its session and then redirect back.
$logoutUrl = OIDC_LOGOUT_ENDPOINT
. '?post_logout_redirect_uri=' . urlencode(OIDC_POST_LOGOUT_REDIRECT_URI);
header('Location: ' . $logoutUrl);
exit;