daxreyes commented on PR #13404:
URL: https://github.com/apache/cloudstack/pull/13404#issuecomment-5009962033

   > This fixed worked, with a bit of improvising when applying from the 
front-end without recompiling. Not sure if this was the best approach, so if 
there is a better/proper way to do this, please share.
   > 
   > edit the file /usr/share/cloudstack-management/webapp/js/app.e527f263.js
   > 
   > Search ".commit("SET_MS_ID",N.a.get("managementserverid"))"
   > 
   > and replace with ";const 
ms_id=N.a.get("managementserverid");ms_id&&v["a"].commit("SET_MS_ID",ms_id)"
   > 
   > sudo service cloudstack-management restart
   > 
   > That's it and SSO should work again.
   
   I can confirm this work around. If I remember correctly, the string to 
replace is
   
    `,v["a"].commit("SET_MS_ID",N.a.get("managementserverid"))` 
   
   with 
   
   `;const 
ms_id=N.a.get("managementserverid");ms_id&&v["a"].commit("SET_MS_ID",ms_id)`
   
   For additional reference you will have a line that looks like below after 
replacement
   
   `if(!0===g&&(""===O||void 0===O))return void 
o({path:"/setup2FA"});v["a"].commit("SET_LOGIN_FLAG",!0);const 
ms_id=N.a.get("managementserverid");ms_id&&v["a"].commit("SET_MS_ID",ms_id)}if(0===Object.keys(v["a"].getters.apis).length)`


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