Unverified Commit 5236b2c8 authored by Stephan Renatus's avatar Stephan Renatus Committed by GitHub

Merge pull request #1339 from alexmt/1263-connector-error-message

Issue #1263 - Render error message provided by connector if user authentication failed
parents 57b10313 ff8b4455
......@@ -386,7 +386,7 @@ func (s *Server) handleConnectorCallback(w http.ResponseWriter, r *http.Request)
if err != nil {
s.logger.Errorf("Failed to authenticate: %v", err)
s.renderError(w, http.StatusInternalServerError, "Failed to return user's identity.")
s.renderError(w, http.StatusInternalServerError, fmt.Sprintf("Failed to authenticate: %v", err))
return
}
......
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