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";