diff options
author | Alessio Caiazza <acaiazza@gitlab.com> | 2019-02-25 17:15:14 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2020-07-06 02:13:51 +0300 |
commit | cac920323f196072c28bee611a4ee9157316cd6f (patch) | |
tree | 204b677760ac5e7f58cb0d4776f3217dbee17a83 /internal/auth/auth.go | |
parent | f204fde955e305122467ed70f38edd342a8776ce (diff) |
Serve custom 404 even in case of auth failure
Diffstat (limited to 'internal/auth/auth.go')
-rw-r--r-- | internal/auth/auth.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/internal/auth/auth.go b/internal/auth/auth.go index 6dce1ab8..453edff2 100644 --- a/internal/auth/auth.go +++ b/internal/auth/auth.go @@ -471,9 +471,7 @@ func (a *Auth) checkAuthentication(w http.ResponseWriter, r *http.Request, proje logRequest(r).WithError(err).Error("Failed to retrieve info with token") } - // We return 404 if for some reason token is not valid to avoid (not) existence leak - httperrors.Serve404(w) - return true + return false } return false |