This commit is contained in:
2023-05-20 09:52:00 -05:00
parent ca99c8850d
commit 1b34c79386

View File

@@ -60,7 +60,7 @@ func main() {
func authMiddleware(allowedGroups []string) gin.HandlerFunc {
return func(c *gin.Context) {
// Get the user groups from the request headers
groupsHeader := c.GetHeader("X-Forwarded-Groups")
groupsHeader := c.GetHeader("X-authentik-groups")
// Split the groups header value into individual groups
groups := strings.Split(groupsHeader, ",")