This commit is contained in:
2023-05-20 10:10:21 -05:00
parent 1b34c79386
commit 89648fc631

View File

@@ -63,7 +63,7 @@ func authMiddleware(allowedGroups []string) gin.HandlerFunc {
groupsHeader := c.GetHeader("X-authentik-groups") groupsHeader := c.GetHeader("X-authentik-groups")
// Split the groups header value into individual 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 // Check if the user belongs to any of the allowed groups
isAllowed := false isAllowed := false