Forge Component
(43)
Published on 01:34 (4 hours ago) by Leonardo Fernandes
43 votes
Published on 01:34 (4 hours ago) by Leonardo Fernandes

Hi.

We are having issues trying to logout in mobile app if we swipe up the application. Here's the steps:

  • Login using IdPMobileFlow\SamlLogin
  • Double click on home button and swipe up the app
  • Open the application back again
  • Do logout using IdPMobileFlow\SamlLogout

Here's what we were able to discover:

When InAppBrowser performs the call to IdP logout screen, the action GetCurrentUserSession uses the session variables 'SamlSessionIndex' and 'Username' and those are cleaned up if the user swipes up the application. Being the result No SessionIndex = true:

GetCurrentUserSession.UserSession.UserSession.SamlSessionIndex = ""


We are then redirected to LogoutDestinationURL which is "ActionIdP_SingleLogout_URL" :


I couldn't find any post regarding this, any idea on how to solve it?

Any help would be greatly appreciated.

Tania

Rahul Sahu wrote:

Hi Tânia Pires,

Have you checked service center log.

This is happing when things are not present on this application.

Check URL first It will come proper or not.

check this post-

https://www.outsystems.com/forums/discussion/32971/idp-logout/

https://www.outsystems.com/forums/discussion/36704/logout-error/

https://success.outsystems.com/Support/Enterprise_Customers/Upgrading/Updating_the_logout_flow_of_your_Traditional_Web_App_to_support_SAML_2.0


Regards

Rahul Sahu

Hi Rahul,

Thank you for your quick response. I already checked the posts that you shared and they are all web related. This issue is happening in mobile, I posted it here because the redirect is happening in IdP module.

There is no errors in service studio. 


Solution

Hi Tania,

That's how the component works (IdPMobile). You cannot use the SAML logout block to logout if you set the PersistentLogin to true when using the SamlLogin. So for your use (keep the user logged in when we app is closed) when you want to perform a logout you just do the standard DoLogout from the platform without using the SAMLLogout component.

Regards.

Solution

Hi Telmo.

We actually started to implement what you just said. We want have a persistent login so we will follow your suggestion.

Thank you!