I'm using Alfresco Community 6.1 with Keycloak. It's all working fine but from time to time after I leave my PC for a longer period of time I get a "communication failure" Error displayed in Alfresco Share. When I refresh the page I am redirected to the login page (because the auth token has expired) but it should auto-redirect me instead of displaying the error.
I noticed this error comes from the handleTransactionResponse() method in the connection.js file, YUI library. Is there a way to override this method to add the location.reload() line? Or is there any better solution?
Normally, there should already be a default handling of 401 response errors from Share / the backend to reload the page, which should give you the login page. Since I have never used Alfresco's default Keycloak integration (which I consider to be naiive / too minimalistic), I don't know whether they managed to mess something up handling this kind of error, so that a 401 of the backend is masked somehow to the client, resulting in the 401 handling not being triggered.