From 1cfc2b7e23cade1bd030fb3dc44142b54fefd059 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Fri, 29 Aug 2025 12:27:59 +0200 Subject: [PATCH] Optimized mastodon url --- roles/web-app-mastodon/templates/env.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/web-app-mastodon/templates/env.j2 b/roles/web-app-mastodon/templates/env.j2 index eadfb2e7..7b94c44e 100644 --- a/roles/web-app-mastodon/templates/env.j2 +++ b/roles/web-app-mastodon/templates/env.j2 @@ -67,7 +67,7 @@ OIDC_SCOPE="openid,profile,email" # @see https://stackoverflow.com/questions/72108087/how-to-set-the-username-of-mastodon-by-log-in-via-keycloak OIDC_UID_FIELD={{ OIDC.ATTRIBUTES.USERNAME }} OIDC_CLIENT_ID={{ OIDC.CLIENT.ID }} -OIDC_REDIRECT_URI=https://{{ domains | get_domain(application_id) }}/auth/auth/openid_connect/callback +OIDC_REDIRECT_URI={{ domains | get_url(application_id, WEB_PROTOCOL) }}/auth/auth/openid_connect/callback OIDC_SECURITY_ASSUME_EMAIL_IS_VERIFIED=true OIDC_CLIENT_SECRET={{ OIDC.CLIENT.SECRET }} # uncomment to only use OIDC for login / registration buttons