From 89648fc6312e091b56cf0f2754db46bb3777f365 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Sat, 20 May 2023 10:10:21 -0500 Subject: [PATCH] update --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 922fa95..ba45a9c 100644 --- a/main.go +++ b/main.go @@ -63,7 +63,7 @@ func authMiddleware(allowedGroups []string) gin.HandlerFunc { groupsHeader := c.GetHeader("X-authentik-groups") // Split the groups header value into individual groups - groups := strings.Split(groupsHeader, ",") + groups := strings.Split(groupsHeader, "|") // Check if the user belongs to any of the allowed groups isAllowed := false