Working prototype

This commit is contained in:
2025-05-13 14:19:37 +02:00
parent 2678372ced
commit d1adfe9f93
12 changed files with 491 additions and 0 deletions

19
templates/base.html Normal file
View File

@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>{% block title %}Meine Seite{% endblock %}</title>
<link rel="stylesheet" href="/static/style.css">
</head>
<body>
<header>
<h1>Meine Beispielseite</h1>
{% if user %}
<p>Angemeldet als {{ user.preferred_username }} ({{ user.groups }}) <a href="/logout">Logout</a></p>
{% endif %}
</header>
<main>
{% block content %}{% endblock %}
</main>
</body>
</html>

6
templates/index.html Normal file
View File

@@ -0,0 +1,6 @@
{% extends "base.html" %}
{% block title %}Startseite{% endblock %}
{% block content %}
<h2>Willkommen, {{ user.username }}!</h2>
<p>Dies ist eine einfache geschützte Seite.</p>
{% endblock %}

17
templates/login.html Normal file
View File

@@ -0,0 +1,17 @@
{% extends "base.html" %}
{% block title %}Login{% endblock %}
{% block content %}
<h2>Login</h2>
<!-- SSO-Button -->
<form method="get" action="/login/oidc">
<button type="submit">🔐 Login with Authentik</button>
</form>
<!-- WebAuthn-Button -->
<!-- <form method="get" action="/login/webauthn">
<button type="submit">🧷 Mit WebAuthn anmelden</button>
</form> -->
{% endblock %}