From a10d9cdfb991ed93cc08166b241beab75e69b874 Mon Sep 17 00:00:00 2001 From: Alexander Tomokhov Date: Sat, 29 Mar 2025 00:44:10 +0400 Subject: [PATCH] forgejo:auth: fix recognition of an admin user --- sp-modules/gitea/module.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sp-modules/gitea/module.nix b/sp-modules/gitea/module.nix index 9952f9d..b1e39a1 100644 --- a/sp-modules/gitea/module.nix +++ b/sp-modules/gitea/module.nix @@ -374,6 +374,10 @@ in enablePkce = false; # FIXME maybe Forgejo supports PKCE? linuxUserOfClient = linuxUserOfService; linuxGroupOfClient = linuxGroupOfService; + claimMaps.groups = { + joinType = "array"; + valuesByGroup.${adminsGroup} = [ "admins" ]; + }; }; }) ]);