From 44b7e0fdca5c421cd0e9c6fa81e93e1ffad587ca Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Wed, 16 Jan 2019 16:49:33 +0200 Subject: [PATCH] fix(auth): change error type Co-Authored-By: chiptus --- api/http/handler/auth/authenticate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/http/handler/auth/authenticate.go b/api/http/handler/auth/authenticate.go index a0fbf7c51..eca24a902 100644 --- a/api/http/handler/auth/authenticate.go +++ b/api/http/handler/auth/authenticate.go @@ -106,7 +106,7 @@ func (handler *Handler) authenticateOAuth(w http.ResponseWriter, r *http.Request } if settings.AuthenticationMethod != 3 { - return &httperror.HandlerError{http.StatusForbidden, "OAuth authentication is not being used", err} + return &httperror.HandlerError{http.StatusServiceUnavailable, "Authentication is not configured to use OAuth", err} } token, err := handler.OAuthService.GetAccessToken(payload.Code, &settings.OAuthSettings)