feat(oauth-logs): adding invalid token to oauth logs
This commit is contained in:
parent
7102fe1853
commit
246904b0d2
|
|
@ -51,7 +51,7 @@ func (j *jwtSessionLoader) loadSession(next http.Handler) http.Handler {
|
|||
|
||||
session, err := j.getJwtSession(req)
|
||||
if err != nil {
|
||||
logger.Errorf("Error retrieving session from token in Authorization header: %v", err)
|
||||
logger.Errorf("Error retrieving session from token in Authorization header: %v %s", err, req.Header.Get("Authorization"))
|
||||
if j.denyInvalidJWTs {
|
||||
http.Error(rw, http.StatusText(http.StatusForbidden), http.StatusForbidden)
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in New Issue