Unverified Commit d36e6c26 authored by Stephan Renatus's avatar Stephan Renatus Committed by GitHub

Merge pull request #1490 from momokatte/master

Return HTTP 400 for invalid state parameter
parents 6ae11a1c d03a4333
......@@ -417,7 +417,7 @@ func (s *Server) handleConnectorCallback(w http.ResponseWriter, r *http.Request)
if err != nil {
if err == storage.ErrNotFound {
s.logger.Errorf("Invalid 'state' parameter provided: %v", err)
s.renderError(w, http.StatusInternalServerError, "Requested resource does not exist.")
s.renderError(w, http.StatusBadRequest, "Requested resource does not exist.")
return
}
s.logger.Errorf("Failed to get auth request: %v", err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment