smolnar82 opened a new pull request, #806:
URL: https://github.com/apache/knox/pull/806

   ## What changes were proposed in this pull request?
   
   When end-users log out from the application (using the logout button on the 
Knox Home page), the KnoxSSO cookie is removed from the token state service too 
(if it was configured earlier).
   I also made a small, but useful change on the Token Management UI: `current` 
KnoxSSO cookie, bound to the current session, is shown in **bold**.
   
   ## How was this patch tested?
   
   Manual testing:
   1. enabled logout on Knox Home page
   1. enabled the storage of KnoxSSO cookies
   1. logged into the Knox Token Management page in a regular browser window
   2. logged into the Knox Token Management page in an incognito browser window
   3. logged out from the Knox Home page in the incognito window
   4. logged in again in the incognito window
   
   Before logout:
   
   <img width="1780" alt="Screenshot 2023-10-19 at 14 58 28" 
src="https://github.com/apache/knox/assets/34065904/5800af37-6c52-4a47-85c9-2636ad3f14b9";>
   
   <img width="1785" alt="Screenshot 2023-10-19 at 14 58 41" 
src="https://github.com/apache/knox/assets/34065904/a8e60ec3-46ed-4af6-b845-3498126a9276";>
   
   
   After logout and re-login:
   
   <img width="1769" alt="Screenshot 2023-10-19 at 14 59 15" 
src="https://github.com/apache/knox/assets/34065904/9a515ed5-73cb-4f49-914a-81c8680065a4";>
   
   <img width="1781" alt="Screenshot 2023-10-19 at 14 59 45" 
src="https://github.com/apache/knox/assets/34065904/50d47006-567a-4138-8aa3-ae99a6957b61";>
   
   Relevant log entry:
   ```
   2023-10-19 14:57:53,490 a84e9e8f-7a8f-4ba5-91d1-86d05e587a71 INFO  
service.knoxsso (WebSSOResource.java:saveToken(453)) - Knox Token service 
(knoxsso) stored state for token eyJraW...EG-3Ug (4e58e7fd...943d4023c4f3)
   ...
   2023-10-19 14:58:50,251 a9e1b9e1-cc32-456b-a489-ab9379d636b5 INFO  
service.knoxsso (WebSSOutResource.java:removeKnoxSsoCookie(143)) - Knox Token 
service (homepage) revoked token eyJraW...EG-3Ug (4e58e7fd...943d4023c4f3) 
(renewer=admin)
   ...
   2023-10-19 14:59:02,758 5b8eef40-a408-41d9-99ec-cd150c852748 INFO  
service.knoxsso (WebSSOResource.java:saveToken(453)) - Knox Token service 
(knoxsso) stored state for token eyJraW...a4Kc7Q (663e56bb...918736ba130b)
   ```
   
   


-- 
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]

Reply via email to