Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion backend/middleware/basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ func HttpBasicApiAuth() gin.HandlerFunc {
c.Abort()
return
} else {
setDefaultOrganisationId(c)
c.Set(ORGANISATION_ID_KEY, jobToken.OrganisationID)
c.Set(ACCESS_LEVEL_KEY, jobToken.Type)
c.Set(JOB_TOKEN_KEY, jobToken.Value)
slog.Debug("Job token verified", "organisationId", jobToken.OrganisationID, "accessLevel", jobToken.Type)
}
} else if token == os.Getenv("BEARER_AUTH_TOKEN") {
slog.Debug("Using admin bearer token")
Expand Down