smolnar82 opened a new pull request, #1543: URL: https://github.com/apache/knox/pull/1543
[KNOX-3615](https://issues.apache.org/jira/browse/KNOX-3615) - Remove the broken "Sign in again" button from the KnoxSSO logout page ## What changes were proposed in this pull request? The "Sign in again" button added to `logout.jsp` in [KNOX-3505](https://issues.apache.org/jira/browse/KNOX-3505) is a form hard-coded to `login.html`. When the KnoxSSO topology authenticates via pac4j (e.g. SAML), `login.html` posts Basic credentials to `api/v1/websso`, which fails with 403. "Return to application" already works for every provider, since the application redirects to `websso` and the active provider handles the login. * Removed the "Sign in again" form and restored the "pre-KNOX-3505" page text, so "Return to application" is the single action. * In the modern theme, styled the "Return to application" link as the primary button (same look as the removed button). The default theme keeps it as a link. * Removed the `theme` param handling in `logout.jsp` that only fed that form, the now-unused `#signOut` selectors from the modern theme, and the stale comment in `theme-config.js`. ## How was this patch tested? Manually on a local gateway (`knoxsso` topology, ShiroProvider), default and modern themes, with and without `knox.global.logout.page.url`: * The logout page renders with only "Return to application" (plus "Global Logout" when configured). * `returnToApp=1` redirects to `originalUrl`, which goes through `websso` to `login.html`. * `globalLogout=1` redirects to the configured global logout URL. * An invalid `originalUrl` still shows the "Invalid Redirect" error; an invalid `theme` value is ignored. ## Integration Tests None added: this is a JSP/CSS-only change and no existing tests cover the logout page content. ## UI changes Modern theme: <img width="1672" height="885" alt="image" src="https://github.com/user-attachments/assets/48608601-6106-4961-aab5-6d33a3e6d25e" /> Default theme: <img width="1713" height="847" alt="image" src="https://github.com/user-attachments/assets/3b501c6e-6396-4cc6-925f-76f5f3208424" /> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
