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

[ui-admin] disabled log out button for SAML & Knox #4048

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bjornalm
Copy link
Collaborator

@bjornalm bjornalm commented Mar 12, 2025

What changes were proposed in this pull request?

  • Disable the log out button if the authentication is handled by Knox

I didn't find enough info in the config API so I had to rely on the URL variables.

@amitsrivastava can you verify that it is safe to depend on the global js variables like this and that the condition is complete?

How was this patch tested?

  • manual testing by accessing different deployments using Knox or none to establish the condition used to set the ALLOW_HUE_LOGOUT flag.
  • Manually setting ALLOW_HUE_LOGOUT to true or false to verify that the logout button shows/disappears in the left bar both for expanded and collapsed.

image
image
image
image

Please review Hue Contributing Guide before opening a pull request.

Copy link

⚠️ No unit test files modified. Please ensure that changes are properly tested. ⚠️

Copy link

github-actions bot commented Mar 12, 2025

Backend Codecov

Backend Code Coverage Report •
FileStmtsMissCoverMissing
TOTAL533132612351% 
report-only-changed-files is enabled. No files were changed during this commit :)

Pytest Report

Tests Skipped Failures Errors Time
1090 107 💤 0 ❌ 0 🔥 5m 48s ⏱️

Copy link

⚠️ No unit test files modified. Please ensure that changes are properly tested. ⚠️

@bjornalm bjornalm force-pushed the bjorn--conditionally-hide-logout-button branch from 0349b7d to f5020b5 Compare March 12, 2025 20:56
Copy link

⚠️ No unit test files modified. Please ensure that changes are properly tested. ⚠️

@bjornalm bjornalm force-pushed the bjorn--conditionally-hide-logout-button branch from f5020b5 to 6e1d943 Compare March 12, 2025 20:57
Copy link

⚠️ No unit test files modified. Please ensure that changes are properly tested. ⚠️

@bjornalm bjornalm marked this pull request as ready for review March 12, 2025 20:58
Copy link
Collaborator

@amitsrivastava amitsrivastava left a comment

Choose a reason for hiding this comment

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

LGTM

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.

2 participants