fix(oatuh): reverting logging comment to the original code
This commit is contained in:
parent
246904b0d2
commit
c6ddfdb0f6
|
|
@ -51,7 +51,7 @@ func (j *jwtSessionLoader) loadSession(next http.Handler) http.Handler {
|
||||||
|
|
||||||
session, err := j.getJwtSession(req)
|
session, err := j.getJwtSession(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Errorf("Error retrieving session from token in Authorization header: %v %s", err, req.Header.Get("Authorization"))
|
logger.Errorf("Error retrieving session from token in Authorization header: %v", err)
|
||||||
if j.denyInvalidJWTs {
|
if j.denyInvalidJWTs {
|
||||||
http.Error(rw, http.StatusText(http.StatusForbidden), http.StatusForbidden)
|
http.Error(rw, http.StatusText(http.StatusForbidden), http.StatusForbidden)
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue