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

@@ -15,21 +15,13 @@ $keycloakConfig = ConfigLoader::load($projectRoot, 'keycloak');
$auth = new KeycloakAuth($keycloakConfig);
if (!$auth->shouldShowDesktop()) {
$previewUrl = null;
if ($auth->allowDesktopPreview()) {
$previewUrl = '/?' . urlencode($auth->previewQueryKey()) . '=1';
if ($auth->isConfigured()) {
header('Location: /auth/keycloak', true, 302);
exit;
}
$loginScreen = [
'branding' => $auth->branding(),
'login_url' => $auth->isConfigured() ? '/auth/keycloak' : null,
'preview_url' => $previewUrl,
'keycloak_ready' => $auth->isConfigured(),
'callback_url' => $auth->redirectUri(),
];
require $projectRoot . '/partials/auth/login_screen.php';
http_response_code(503);
echo 'Keycloak ist nicht konfiguriert.';
exit;
}