security: remove debug token logging

This commit is contained in:
AJ ONeal 2022-05-09 15:13:05 -06:00
parent f5e3b9e094
commit 7c8ea53a6c
No known key found for this signature in database
GPG Key ID: 562702827EF68D87
1 changed files with 0 additions and 2 deletions

View File

@ -2,7 +2,6 @@ package chiauth
import ( import (
"context" "context"
"log"
"net/http" "net/http"
"strings" "strings"
@ -46,7 +45,6 @@ func NewTokenVerifier(opts VerificationParams) func(http.Handler) http.Handler {
// just setting a default, other handlers can change this // just setting a default, other handlers can change this
token := r.Header.Get("Authorization") token := r.Header.Get("Authorization")
log.Printf("%s %s %s\n", r.Method, r.URL.Path, token)
if "" == token { if "" == token {
if opts.Optional { if opts.Optional {