Skip to content

Display a user friendly view when SAML/OpenID Connect login fails #61232

@azasypkin

Description

@azasypkin

When during the SAML/OpenID Connect IdP initiated login or at the last step of SP initiated handshake Elasticsearch (e.g. Kibana session expired in the middle of SAML handshake #18117) rejects to authenticate user we just display raw error message without guiding user on what to do next.

Here is example where user ends up with if SAMLResponse is rejected because of unknown realm:

Screenshot from 2020-03-25 10-52-33

We can detect most (all?) of these cases since they're triggered through dedicated endpoints (/api/security/saml/callback, /internal/security/saml/start, /api/security/oidc/callback and /api/security/oidc/initiate_login) and render something that is nicer and more actionable than that.

Metadata

Metadata

Assignees

Labels

Feature:Security/AuthenticationPlatform Security - AuthenticationTeam:SecurityPlatform Security: Auth, Users, Roles, Spaces, Audit Logging, etc t//enhancementNew value added to drive a business result

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions