Skip to content

Commit 64aee27

Browse files
committed
debugging auth middleware
1 parent 547467d commit 64aee27

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

internals/proxy/proxy.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,12 @@ func AuthMiddleware(next http.Handler) http.Handler {
113113
}
114114
}
115115

116+
if success {
117+
log.Debug("Finished Auth Middleware with success")
118+
} else {
119+
log.Debug("Finished Auth Middleware with failure")
120+
}
121+
116122
if !success {
117123
w.Header().Set("WWW-Authenticate", "Basic realm=\"Login Required\", Bearer realm=\"Access Token Required\"")
118124

0 commit comments

Comments
 (0)