From 53dbedef2bb065bc43e09aa84307f417fc1f4fc8 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 8 May 2023 02:09:08 +0200 Subject: [PATCH] tsuki/hedgedoc: small auth url improvement --- hosts/tsuki/services/hedgedoc.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hosts/tsuki/services/hedgedoc.nix b/hosts/tsuki/services/hedgedoc.nix index a6c0771..f32f6cf 100644 --- a/hosts/tsuki/services/hedgedoc.nix +++ b/hosts/tsuki/services/hedgedoc.nix @@ -20,11 +20,11 @@ oauth2 = let authServerUrl = config.services.kanidm.serverSettings.origin; - in { + in rec { baseURL = "${authServerUrl}/oauth2"; tokenURL = "${authServerUrl}/oauth2/token"; authorizationURL = "${authServerUrl}/ui/oauth2"; - userProfileURL = "${authServerUrl}/oauth2/openid/hedgedoc/userinfo"; + userProfileURL = "${authServerUrl}/oauth2/openid/${clientID}/userinfo"; clientID = "hedgedoc";