Univention Bugzilla – Bug 51856
Portal Preview App - Portal should re-render on login
Last modified: 2020-11-05 15:00:50 CET
Created attachment 10462 [details] Beginnings of a patch (not complete) At the moment the Portal only re-render when the login button is clicked. It should re-render when detecting a login instead.
I was looking into the "window.postMessage" to communicate between the login and portal frames. But I decided against a direct communication for two reasons: - It would not work with another IdP - MDN recommends that both communication partner know the origin of each other. That would add another layer that needs to be configured in scenario that use a reverse proxy I now check the login status in case the home tab is reselected and use the patch from Johannes to re-render the portal. The patch can be found on the branch: juern/4.4.4/portal_iframes
App univention-portal=3.1.2
Tested: Login in another tab. Login in another iframe. Logout in another tab. Logout in another iframe. Code: OK Login: OK
Released version 3.1.2