add logging

This commit is contained in:
2023-06-25 06:57:51 -04:00
parent c5b3f99172
commit bdd61cfdb8

View File

@@ -79,6 +79,7 @@ func authMiddleware(allowedGroups []string) gin.HandlerFunc {
} else { } else {
groupsHeader := c.GetHeader("X-authentik-groups") groupsHeader := c.GetHeader("X-authentik-groups")
fmt.Println(c.GetHeader("X-authentik-name"))
fmt.Println(groupsHeader) fmt.Println(groupsHeader)
groups = strings.Split(groupsHeader, "|") groups = strings.Split(groupsHeader, "|")
} }