Skip to content

Conversation

@SergeyPoluektov
Copy link
Contributor

@SergeyPoluektov SergeyPoluektov commented Feb 1, 2022

Summary

Related to #123772

This PR is fixing the issue with getting user email in the cloud environment.

AuthenticatedUser object has field email which is set to null value even in the cloud env. Based on the internal slack discussion we find out that we can safely use AuthenticatedUser.metadata.saml_name property to obtain a user email.

Checklist

For maintainers

@SergeyPoluektov SergeyPoluektov added Team:Cloud release_note:skip Skip the PR/issue when compiling release notes impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. v8.1.0 Team:SharedUX Platform AppEx-SharedUX (formerly Global Experience) t// labels Feb 1, 2022
@SergeyPoluektov SergeyPoluektov requested a review from a team as a code owner February 1, 2022 15:31
let { email: userEmail, username: userId } = user || {};
const { metadata, username } = user || {};
let userId = username;
let [userEmail] = (metadata as MetaWithSaml)?.saml_name || [];
Copy link
Contributor

Choose a reason for hiding this comment

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

This is incorrect, based on what I'm seeing in Cloud... we need saml_email. The token is coming back, but the AWS frame is rejecting it. I'll update and redeploy to test.

@kibana-ci
Copy link

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

@clintandrewhall
Copy link
Contributor

I went ahead and opened #124301 and deployed it to Cloud. I'm going to close this PR for a clean review from core.

@SergeyPoluektov SergeyPoluektov deleted the fix/cloud-chat-useremail branch February 2, 2022 08:19
@clintandrewhall clintandrewhall added the Feature:Chat The integration of Live Chat (Drift) into Kibana. label Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Chat The integration of Live Chat (Drift) into Kibana. impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. release_note:skip Skip the PR/issue when compiling release notes Team:Cloud Team:SharedUX Platform AppEx-SharedUX (formerly Global Experience) t// v8.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants