update
All checks were successful
Deploy / deploy-staging (push) Successful in 47s
Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-06-15 02:38:41 +02:00
parent 46d1e624b9
commit 823c5d197d
10 changed files with 23 additions and 47 deletions

View File

@@ -11,18 +11,11 @@ session_start();
$projectRoot = dirname(__DIR__, 3);
$auth = new KeycloakAuth(ConfigLoader::load($projectRoot, 'keycloak'));
$previewUrl = $auth->allowDesktopPreview()
? '/?' . urlencode($auth->previewQueryKey()) . '=1'
: null;
$loginScreen = [
'branding' => $auth->branding(),
'login_url' => $auth->isConfigured() ? '/auth/keycloak' : null,
'register_url' => '/auth/register',
'forgot_password_url' => '/auth/forgot-password/',
'preview_url' => $previewUrl,
'keycloak_ready' => $auth->isConfigured(),
'callback_url' => $auth->redirectUri(),
];
if ($auth->isConfigured()) {
header('Location: /auth/keycloak', true, 302);
exit;
}
require $projectRoot . '/partials/auth/login_screen.php';
http_response_code(503);
echo 'Keycloak ist nicht konfiguriert.';