test
This commit is contained in:
2
main.go
2
main.go
@@ -60,7 +60,7 @@ func main() {
|
|||||||
func authMiddleware(allowedGroups []string) gin.HandlerFunc {
|
func authMiddleware(allowedGroups []string) gin.HandlerFunc {
|
||||||
return func(c *gin.Context) {
|
return func(c *gin.Context) {
|
||||||
// Get the user groups from the request headers
|
// 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
|
// Split the groups header value into individual groups
|
||||||
groups := strings.Split(groupsHeader, ",")
|
groups := strings.Split(groupsHeader, ",")
|
||||||
|
|||||||
Reference in New Issue
Block a user