Skip to content

Commit ad260ce

Browse files
add c.Next() to continue middleware chain
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent 9dbc296 commit ad260ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backend/middleware/basic.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ func HttpBasicApiAuth() gin.HandlerFunc {
7272
c.Set(ACCESS_LEVEL_KEY, jobToken.Type)
7373
c.Set(JOB_TOKEN_KEY, jobToken.Value)
7474
slog.Debug("Job token verified", "organisationId", jobToken.OrganisationID, "accessLevel", jobToken.Type)
75+
c.Next()
7576
}
7677
} else if token == os.Getenv("BEARER_AUTH_TOKEN") {
7778
slog.Debug("Using admin bearer token")

0 commit comments

Comments
 (0)