Session timeout in Mendix

2
Hi Community,   If I am on a specific page that is routed via deeplink. After session timeout it is routing to index.html which leads to default home page. Is there any way to load my deeplink page on the session timeout as well?   Thanks.
asked
3 answers
1

Hi Animesh,

 

If your are using deeplink with a SSO SAML, you need to config DeepLink module and your app as well.

In Deeplink just change this consts:

EnableLeadingSlash = false

LoginLocation = /SSO/login?f=true&cont=

 

In Mendix you have to change com.mendix.core.SameSiteCookies=LAX

 

for LocalHost:

com.mendix.core.SameSiteCookies = LAX

 

for Cloud may have to change some custom runtime settings…

Same Site info:

https://docs.mendix.com/developerportal/deploy/environments-details/#4222-applying-a-different-samesite-setting

https://docs.mendix.com/appstore/modules/saml/#9-read-more

https://docs.mendix.com/refguide/custom-settings/

 

Basically,

With this settings, the user hits the App with your DeepLink (app.com/link/xxx) 

If no session is active deeplink will call the LoginLocation with the link, (app.com/SSO/login?cont=link/xxx) 

SAML will call the SSO/Idp and keep the link in your Cookies, 

When SSO callback the SAML / assertion endpoint, the SAML redirect to your original deeplink (app.com/link/xxx).

 

When the Cookie is not passed along to Idp and back, the SAML will sent you to “app.com/”…

 

Hope this helps

Best regards

 

 

answered
0

Hi Animesh,

The default location deeplink sends you is ‘login.html’. You can change this by changing the constant ‘LoginLocation’ in you app. See for more information:

https://docs.mendix.com/appstore/modules/deep-link/#36-configuring-constants

answered
0

Hi Animesh,

 

Did you check both below checkboxes in deeplink configuration ?

 

Thanks

iqbal

answered