M0: Skelett + Auth-Grundgerüst (Keycloak-OIDC + API-Token)
- Symfony 7.4 LTS, PHP 8.4, FrankenPHP, SQLite (3-Layer src/UI|Logic|Data) - Auth: manueller OidcClient (Authorization-Code) im UI-Layer, kein Security-Bundle/league; Session-Gate via SessionAuthSubscriber - API-Guard via statischem X-Api-Token (ApiTokenSubscriber); ExceptionSubscriber - UserEntity (Auto-Provision) + Init-Migration - Docker (php:8.4-frankenphp) + compose (essen.ljh31.de, traefik-net external) - SmokeTests (7) grün: Redirect-Fälle, API-Token, Auth-Render, Logout Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
{% extends 'layout/base.html.twig' %}
|
||||
|
||||
{% block title %}Start · svc-essensplanung{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>{{ name }}</h1>
|
||||
<div class="card">
|
||||
<p>Willkommen zur Essensplanung! (M0-Skelett)</p>
|
||||
<p><strong>E-Mail:</strong> {{ email }}</p>
|
||||
<p><strong>Redirect-Pfad:</strong> <code>{{ redirect }}</code></p>
|
||||
<p>M1: CRUD-Slice (Dish-Create/Update/Delete/List) folgt.</p>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,63 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de" dir="ltr">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{% block title %}svc-essensplanung{% endblock %}</title>
|
||||
<style>
|
||||
:root {
|
||||
--bg: #f4f4f4;
|
||||
--fg: #112233;
|
||||
--card: #fff;
|
||||
--accent: #0a7bff;
|
||||
--muted: #667;
|
||||
--warn: #b45309;
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
body {
|
||||
margin: 0;
|
||||
font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
|
||||
background: var(--bg);
|
||||
color: var(--fg);
|
||||
}
|
||||
header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 0.75rem 1rem;
|
||||
background: var(--card);
|
||||
box-shadow: 0 1px 0 #ddd;
|
||||
}
|
||||
header a {
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
margin-left: 1rem;
|
||||
}
|
||||
main {
|
||||
max-width: 40rem;
|
||||
margin: 2rem auto;
|
||||
padding: 0 1rem;
|
||||
}
|
||||
.card {
|
||||
background: var(--card);
|
||||
padding: 1.25rem;
|
||||
border-radius: 0.5rem;
|
||||
box-shadow: 0 1px 2px rgba(0,0,0,.06);
|
||||
}
|
||||
</style>
|
||||
{% block stylesheets %}{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<strong>essen.ljh31.de</strong>
|
||||
<nav>
|
||||
<a href="logout">Abmelden</a>
|
||||
</nav>
|
||||
</header>
|
||||
<main>
|
||||
{% block body %}{% endblock %}
|
||||
</main>
|
||||
<script src="{{ asset('js/htmx.min.js') }}"></script>
|
||||
{% block javascripts %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user