summaryrefslogtreecommitdiff
path: root/src/main/resources/templates/login.html
diff options
context:
space:
mode:
authorPaul-Christian Volkmer2024-01-31 15:43:10 +0100
committerPaul-Christian Volkmer2024-01-31 15:57:16 +0100
commit17e04a3f8972fe5eca0bf3b236293e4a6998e56f (patch)
tree5fc1a30c2991827cc610e0d2a83bfb4f32109d12 /src/main/resources/templates/login.html
parentf71a775e12bfc6fe50e0b443863ac8fec6f4a4f2 (diff)
feat: add basic support for OIDC login
Diffstat (limited to 'src/main/resources/templates/login.html')
-rw-r--r--src/main/resources/templates/login.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/resources/templates/login.html b/src/main/resources/templates/login.html
index 9a63b46..4ef8ec9 100644
--- a/src/main/resources/templates/login.html
+++ b/src/main/resources/templates/login.html
@@ -13,9 +13,11 @@
<div class="centered notification error" th:if="${param.error}">Anmeldung nicht erfolgreich</div>
<div class="centered notification success" th:if="${param.logout}">Sie haben sich abgemeldet</div>
<form method="post" th:action="@{/login}">
- <input type="text" id="username" name="username" class="form-control" placeholder="Username" required="" autofocus="">
- <input type="password" id="password" name="password" class="form-control" placeholder="Password" required="">
+ <input type="text" id="username" name="username" class="form-control" placeholder="Username" required="" autofocus="" />
+ <input type="password" id="password" name="password" class="form-control" placeholder="Password" required="" />
<button type="submit">Anmelden</button>
+ <hr th:if="${not oidcLogins.isEmpty()}" />
+ <a th:each="oidcLogin : ${oidcLogins}" class="btn" th:href="@{/oauth2/authorization/{provider}(provider=${oidcLogin.component1()})}">OIDC Login - [[ ${oidcLogin.component2()} ]]</a>
</form>
</div>
</main>