[ 
https://issues.apache.org/jira/browse/KNOX-3615?focusedWorklogId=1056914&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1056914
 ]

ASF GitHub Bot logged work on KNOX-3615:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 24/Nov/26 17:08
            Start Date: 24/Nov/26 17:08
    Worklog Time Spent: 10m 
      Work Description: 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";
 />
   
   




Issue Time Tracking
-------------------

            Worklog Id:     (was: 1056914)
    Remaining Estimate: 0h
            Time Spent: 10m

> KnoxSSO logout page "Sign in again" button always opens the form-based login 
> page, breaking login for federated (pac4j/SAML) topologies
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KNOX-3615
>                 URL: https://issues.apache.org/jira/browse/KNOX-3615
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: KnoxSSO
>            Reporter: Sandor Molnar
>            Priority: Blocker
>          Time Spent: 10m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to