security: remove debug token logging
This commit is contained in:
parent
f5e3b9e094
commit
7c8ea53a6c
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue