souyofnewerth opened a new issue, #14465:
URL: https://github.com/apache/cloudstack/issues/14465

   ### problem
   
   With SAML2 enabled (one IdP), logging out sometimes shows the login page 
without the
   "Single sign-on" tab (the tab is disabled because idps is empty) until the 
page is reloaded.
   
   Cause in ui/src: the Logout action clears the token first, the router shows 
the login page and
   Login.vue fetchData() calls listIdps; then api/index.js logout() finishes 
and calls
   sourceToken.cancel(), which cancels all pending requests including listIdps. 
idps stays [] and the
   SAML tab is :disabled="idps.length === 0".
   
   ### versions
   
   CloudStack 4.23.0.0 UI, SAML2 with Microsoft Entra ID, Chrome / Safari on 
macOS.
   
   ### The steps to reproduce the bug
   
   1. Enable saml2 with one IdP.
   2. Log in (any method), then Logout from the user menu.
   3. The login page shows only "Portal login"; F5 brings the "Single sign-on" 
tab back.
   
   ### What to do about it?
   
   Cancel pending requests before navigating to the login page (or create a 
fresh cancel token
   before Login.vue fetches), or retry listIdps when it was cancelled.
   Our workaround: a small script that reloads the page once when the app 
navigates from an in-app
   route to #/user/login.


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