refactor(http): auth handlers (#1311)

* fix(auth): implement invalid cookie handling

* that escalated quickly

* refactor(http): auth handlers

* add tests for auth handler
* refactor methods

* chore(tests): add header and build tag

* add build tag integration

* chore(tests): run in ci

---------

Co-authored-by: ze0s <ze0s@riseup.net>
This commit is contained in:
Kyle Sanderson 2023-12-27 17:04:25 -08:00 committed by GitHub
parent df2612602b
commit 6a94ecacca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 537 additions and 80 deletions

View file

@ -5,7 +5,6 @@ package http
import (
"bytes"
"io/ioutil"
"os"
"strings"
"testing"
@ -162,7 +161,7 @@ func TestSanitizeLogFile(t *testing.T) {
for _, testCase := range testCases {
t.Run(testCase.name, func(t *testing.T) {
// Create a temporary file with sample log data
tmpFile, err := ioutil.TempFile("", "test-log-*.log")
tmpFile, err := os.CreateTemp("", "test-log-*.log")
if err != nil {
t.Fatal(err)
}