Open Czujackt opened 3 years ago
Can someone help here
do you have two factor authentication enabled? That caused a similar problem for me. see #23606
I have tried this, but it makes no difference. My problem is independent of the two factor authentication
@Czujackt Did you solve the problem? I just caught the same issue
@Nektovet No. After constant refreshing of the page it works then eventually.
Same problem, 4.8, 5.0, 5.0.4, 5.1.4, 5.2rc4, with all these versions we have the same issue.
1) When logging in via SAML, Rocketchat loads blank screen, after refreshing the page (F5) - everything renders. 2) If you log in via standard login form - the page renders with first load. 3) No specific logs in Keycloak or Rocketchat. 4) Google Chrome console logs: 5) Page's code contains exactly the same code when we see blank page and normal page.
I finished up with a temporary solution by adding following code for authorized users (Settings > Layout > Custom Scripts > Authorized users):
if(!window.location.hash) {
window.location = window.location + '#loaded';
window.location.reload();
};
I finished up with a temporary solution by adding following code for authorized users (Settings > Layout > Custom Scripts > Authorized users):
Thanks for the workaround! This worked well for me, but I didn't like adding a hash to the URL. Instead, I added a custom script for logged out users that sets a value in localStorage, and another custom script for logged in users that checks the value, removes it, then refreshes the page.
Custom Script for Logged Out Users
localStorage.setItem("will-refresh", "true");
Custom Script for Logged In Users
if (localStorage.getItem("will-refresh") === "true") {
localStorage.removeItem("will-refresh");
window.location.reload();
}
I finished up with a temporary solution by adding following code for authorized users (Settings > Layout > Custom Scripts > Authorized users):
Thanks for the workaround! This worked well for me, but I didn't like adding a hash to the URL. Instead, I added a custom script for logged out users that sets a value in localStorage, and another custom script for logged in users that checks the value, removes it, then refreshes the page.
Custom Script for Logged Out Users
localStorage.setItem("will-refresh", "true");
Custom Script for Logged In Users
if (localStorage.getItem("will-refresh") === "true") { localStorage.removeItem("will-refresh"); window.location.reload(); }
It is a better solution for my case too, thank for sharing, it is working well
Description:
We use SAML with Keycloak for login to Rocket.Chat. When you complete the login in the browser, the loading screen stays open.
Actual behavior:
Server Setup Information:
Client Setup Information
Relevant logs:
Logs from BROWSER