Skip to content

Conversation

@azasypkin
Copy link
Member

Currently when user tries to login with non-basic authentication provider and this attempt fails we display error toast. This toast allows to display detailed error information, but it cannot properly deal with JSON/Boom errors by default. That leads to practically useless error dialog that displays error title and cryptic JS stack trace:

before

In this PR I'm changing this code to feed detailed/raw error message to the error toast if it's available:

after

Release note: login selector UI displays more detailed error message now.

@azasypkin azasypkin added release_note:fix Team:Security Platform Security: Auth, Users, Roles, Spaces, Audit Logging, etc t// Feature:Security/Authentication Platform Security - Authentication v8.0.0 v7.10.0 v7.9.1 labels Aug 21, 2020
@azasypkin azasypkin requested a review from jportner August 21, 2020 11:33
@azasypkin azasypkin requested a review from a team as a code owner August 21, 2020 11:33
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-security (Team:Security)

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

async chunks size

id value diff baseline
security 1.0MB +385.0B 1.0MB

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Contributor

@jportner jportner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review only -- changes LGTM!

@azasypkin azasypkin merged commit c683639 into elastic:master Aug 21, 2020
@azasypkin azasypkin deleted the issue-xxx-better-error-message branch August 21, 2020 14:15
azasypkin added a commit to azasypkin/kibana that referenced this pull request Aug 21, 2020
@azasypkin
Copy link
Member Author

7.9/7.9.1: 2aa6d29
7.x/7.10.0: c581671

gmmorris added a commit to gmmorris/kibana that referenced this pull request Aug 21, 2020
* master: (71 commits)
  [Lens] Show 'No data for this field' for empty field in accordion (elastic#73772)
  Skip failing lens test
  Configure ScopedHistory consistenty regardless of URL used to mount app (elastic#75074)
  Fix returned payload by "search" usage collector (elastic#75340)
  [Security Solution] Fix missing key error (elastic#75576)
  Upgrade EUI to v27.4.1 (elastic#75240)
  Update datasets UI copy to data streams (elastic#75618)
  [Lens] Register saved object references (elastic#74523)
  [DOCS] Update links to Beats documentation (elastic#70380)
  [Enterprise Search] Convert our `public_url` route to `config_data` and collect initialAppData (elastic#75616)
  [Usage Collection Schemas] Remove Legacy entries (elastic#75652)
  [Dashboard First] Lens Originating App Breadcrumb (elastic#75470)
  Improve login UI error message. (elastic#75642)
  [Security Solution] modify circular deps checker to output images of circular deps graphs (elastic#75579)
  [Data Telemetry] Add index pattern to identify "meow" attacks (elastic#75163)
  Migrate CSP usage collector to `kibana_usage_collection` plugin (elastic#75536)
  [Console] Get ES Config from core (elastic#75406)
  [Uptime] Add delay in telemetry test (elastic#75162)
  [Lens] Use index pattern service instead saved object client (elastic#74654)
  Embeddable input (elastic#73033)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backported Feature:Security/Authentication Platform Security - Authentication release_note:fix Team:Security Platform Security: Auth, Users, Roles, Spaces, Audit Logging, etc t// v7.9.1 v7.10.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants