Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 1.3] Tenancy getting Lost in SAML Authentication #1125

Merged

Conversation

expani
Copy link
Contributor

@expani expani commented Oct 5, 2022

Description

This fix is for ensuring that tenancy information is read from the local storage in SAML Authentication workflow after a user log out of OS Dashboard.

Category

Bug Fix

Why these changes are required?

To have a good user experience and ensure their tenancy is reloaded after logging in into a new session in the same browser.

What is the old behavior before changes and new behavior after changes?

Tenancy information was not being read from local storage after logout in old behaviour for SAML authentication enabled domains. After the changes, tenancy information will be read from local storage. This is ensured as the session storage variable pendistro::security::tenant::show_popup is set to null after logout in SAML Authentication workflow.

Issues Resolved

Issue created for this bug

Testing

The changes have been made in security-dashboards-plugin and the same has been tested for OS Dashboards in SAML authentication enabled domains.

AfterFix_SAMLTenancyBug.mp4

Check List

  • New functionality includes testing
  • New functionality has been documented
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…flow (opensearch-project#1058)

* Fix for picking up tenancy from local storage in SAML AuthN flow

Signed-off-by: Aniketh Jain <[email protected]>
(cherry picked from commit 05649d6)
@expani expani marked this pull request as ready for review October 5, 2022 15:10
@expani expani requested a review from a team October 5, 2022 15:10
@DarshitChanpura DarshitChanpura merged commit 64715fa into opensearch-project:1.3 Oct 5, 2022
cwperks pushed a commit to cwperks/security-dashboards-plugin that referenced this pull request Aug 22, 2024
…Authentication flow (opensearch-project#1058) (opensearch-project#1125)

* Fix for picking up tenancy from local storage in SAML AuthN flow

Signed-off-by: Aniketh Jain <[email protected]>
(cherry picked from commit 05649d6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants