Skip to content

Commit

Permalink
Remove response dumping
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtamm committed Feb 6, 2024
1 parent 690caa5 commit bde1d83
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions server/auth_oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"fmt"
"io"
"net/http"
"net/http/httputil"
"net/url"
"os"
"strings"
Expand Down Expand Up @@ -188,12 +187,6 @@ func (c *OidcConfig) isJwtActive(token string) bool {
defer response.Body.Close()

if response.StatusCode != http.StatusOK {
byteDump, err := httputil.DumpResponse(response, true)
if err != nil {
fmt.Printf("Failed to dump response: %s\n", err)
} else {
fmt.Print(string(byteDump))
}
fmt.Printf("[WARN] JWT introspection call gave non-200 HTTP status %d "+
"(thus JWT not active)\n", response.StatusCode)
return false
Expand Down

0 comments on commit bde1d83

Please sign in to comment.