Working prototype
This commit is contained in:
19
templates/base.html
Normal file
19
templates/base.html
Normal 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
6
templates/index.html
Normal 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
17
templates/login.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user