Resolving blank pop-up upon Fiori session expiry
This blog is for you if you have SAML authentication configured for your Fiori launchpad.
Issue
Whenever you leave your Fiori application idle for long time, when you return back you will be welcomed by the below empty pop-up.
What is happening here?
As you might have guessed your session has expired (Logon cookie), and Fiori is trying to present you a logon screen of your identity provider in this popup. As identity provider usually has a different hostname than your Fiori, browser will block this call (due to Same Origin Policy) and what you get is this nice blank screen.
How to get rid of this pop-up?
Luckily SAP provides an option to change this behavior. Check the below self explanatory code from Fiori Launchpad. Unfortunately you have to edit (i.e. modify) the Fiorilaunchpad.html and there is no extensibility option.
I selected the ‘reload’ option and this is what I get now. Upon clicking ‘OK’, it reloads the screen and I automatically get redirected to my identity provider’s login screen.
How to test it?
For testing your configuration, you do not have to wait for hours till the Fiori logon cookie expires again. You just have to delete the cookie, and then scroll through the launchpad so that one of the dynamic tile triggers a count call and discovers that cooke is expired/deleted. So if you do not know how to delete the cookie, here is the tip.
Happy holidays 🙂
Update: SAP has released a related note for this.
https://launchpad.support.sap.com/#/notes/2193513
Good one Krishna.
Nice topic and tip.
Hi Krishna,
Good topic.
We have selected the 'Reload' option, however I have 2 questions and will appreciate if you can help me.
Thanks,
Mallika
HI Mallika,
Hi Krishna,
We tried setting xhr logon mode: "reload" in the fiorilaunchpad.html file but still we are seeing the white dialog which says 400: Session time out and even the CLOSE button on the dialog footer doesn't works. Are we missing anything from our side.
Thanks and Regards,
Sunil V.