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

Issue #1263 - Render error message provided by connector if user authentication failed
This commit is contained in:
Stephan Renatus 2018-11-15 19:06:30 +01:00 committed by GitHub
commit 5236b2c819
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -386,7 +386,7 @@ func (s *Server) handleConnectorCallback(w http.ResponseWriter, r *http.Request)
if err != nil { if err != nil {
s.logger.Errorf("Failed to authenticate: %v", err) 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 return
} }