From c27d1cb1398bd395112315f9c6cd57dcb16b517d Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sun, 26 Jan 2020 11:11:24 +0100 Subject: Use embedded properties authentication in dev mode. Change-Id: I3a10cac96568fb990eab5b9eaf27bf8780fe207d --- src/main/resources/application.properties | 11 +++++++++++ .../resources/templates/benki/wiki/wikiPageRevisionList.html | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'src/main') 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}
-

Revisions — {title}

+

Revisions — {title}

-- cgit v1.2.3