summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-01-26 11:11:24 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-01-26 11:11:24 +0100
commitc27d1cb1398bd395112315f9c6cd57dcb16b517d (patch)
treed8a03730b3a29830d896fc3ed6cdc26a568d220e
parentb428e5219a0933f346d2dca09783fea8c0f72694 (diff)
Use embedded properties authentication in dev mode.
Change-Id: I3a10cac96568fb990eab5b9eaf27bf8780fe207d
-rw-r--r--build.gradle1
-rw-r--r--pom.xml4
-rw-r--r--src/main/resources/application.properties11
-rw-r--r--src/main/resources/templates/benki/wiki/wikiPageRevisionList.html2
4 files changed, 17 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle
index be8438d..f0b037c 100644
--- a/build.gradle
+++ b/build.gradle
@@ -26,6 +26,7 @@ dependencies {
implementation enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}")
implementation 'io.quarkus:quarkus-agroal'
+ implementation 'io.quarkus:quarkus-elytron-security-properties-file'
implementation 'io.quarkus:quarkus-flyway'
implementation 'io.quarkus:quarkus-hibernate-orm-panache'
implementation 'io.quarkus:quarkus-hibernate-validator'
diff --git a/pom.xml b/pom.xml
index 77eb2cc..0f26d3e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -120,6 +120,10 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
+ <artifactId>quarkus-elytron-security-properties-file</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>io.quarkus</groupId>
<artifactId>quarkus-flyway</artifactId>
</dependency>
<dependency>
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
index 30225ec..161d722 100644
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -14,6 +14,17 @@ quarkus.datasource.min-size = 0
%dev.quarkus.datasource.password =
%dev.quarkus.hibernate-orm.log.sql = true
+# Authentication
quarkus.oidc.auth-server-url = https://login.benkard.de/auth/realms/master
quarkus.oidc.client-id = mulkcms
quarkus.oidc.application-type = web-app
+
+quarkus.security.users.file.enabled = false
+quarkus.security.users.embedded.enabled = false
+
+# Authentication (dev)
+%dev.quarkus.oidc.enabled = false
+%dev.quarkus.security.users.embedded.enabled = true
+%dev.quarkus.security.users.embedded.plain-text = true
+%dev.quarkus.security.users.embedded.users.mulk = mulk
+%dev.quarkus.security.users.embedded.roles.mulk = Admin
diff --git a/src/main/resources/templates/benki/wiki/wikiPageRevisionList.html b/src/main/resources/templates/benki/wiki/wikiPageRevisionList.html
index c44a6e5..95c796d 100644
--- a/src/main/resources/templates/benki/wiki/wikiPageRevisionList.html
+++ b/src/main/resources/templates/benki/wiki/wikiPageRevisionList.html
@@ -7,7 +7,7 @@
{#body}
<header>
- <h1>Revisions &#8212; {title}</h1>
+ <h1>Revisions &#8212; <a href="/wiki/{title}">{title}</a></h1>
</header>
<main>