SAML idp not getting redirect when token expires

Your software
My Mautic version is: 4.0.0-rc
My PHP version is: 7.4
My Database type and version is: tidb

Your problem
My problem is:

My SSO login works just fine (Google G Workplace IdP via SAML).
Once logged in, if i let mautic go idle, and then click on a link (e.g. click on dashboard), I get:

  1. a redirect to https://MYINSTANCE/s/saml/login
  2. a redirect to /saml/discovery
  3. a redirect /s/saml/login?idp=https://accounts.google.com/o/saml2?idpid=…
  4. a 200 OK from https://MYINSTANCE/s/saml/login?idp=https://accounts.google.com/o/saml2?idpid=

either #3 or #4 is incorrect. Nowhere does it redirect to https://accounts.google.com, so i end up stuck.

the visual effect in the browser is “nothing happened”, e.g. click on dashboard, no change (still on calendar eg)

Suggestions? If I now navigate to https://MYINSTANCE, it will work, but this is very frustrating for users.

Hello. Did you ever get a working solution to this? I’m coming up against the same issue with my session timeout and would like to be able to redirect to my IDP without being stuck on the timed-out page. I didn’t see any responses to your question and I’ve posted my question here in the hopes that it might get some responses.

I’m getting the exact same issue. However in my case, the timeout happens much faster than configured. Normally within minutes of logging in Mautic will freeze up and I’ll have to refresh in order to trigger the reauth.