zg-kim-robinson commented on issue #13277:
URL: https://github.com/apache/cloudstack/issues/13277#issuecomment-4677617786

   I have a small workaround in place added to the base index.html file. It 
captures `primate__MS_ID` being set to undefined and instead sets it to empty 
string, which for SAML users is what it was being set to in 4.22.0.1. 
Admin/non-SAML users unaffected.
   A better fix is to sort out the cookie issue but this works for now...
   
   ```javascript
   <script>
       (function() {
           try {
               if (window.localStorage) {
                   const orig = localStorage.setItem;
                   localStorage.setItem = function(k, v) {
                       orig.apply(this, [k, v === undefined && k === 
'primate__MS_ID' ? '""' : v]);
                   }
                   ;
                   if (localStorage.getItem('primate__MS_ID') === 'undefined') {
                       localStorage.setItem('primate__MS_ID', '""');
                   }
               }
           } catch (e) {}
       }
       )();
   </script>
   ``` 


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