I am trialing the Pro version of Metabase for embedding and SSO JWT into our SAAS app. I have managed to show the MB homepage in an iframe. If I navigate away after 3 minutes and back, I get "Token is older than max-age (180)"
This is response to my request:
{"type":"clojure.lang.ExceptionInfo","message":"Token is older than max-age (180)","data":{"type":"validation","cause":"max-age","status-code":401},"at":["metabase_enterprise.sso.integrations.jwt$login_jwt_user$fn__82196","invoke","jwt.clj",80]}
In the MB log file:
2022-09-28T15:50:47+02:00 ERROR metabase-enterprise.sso.api.sso Error returning SSO entry point
We're running on AWS beanstalk with the following environment variables:
MB_DB_xxx
MB_SESSION_COOKIE_SAMESITE=None.
I'm running our web app (front and backend) on my machine so it is localhost and the JWT our backend issues only expires in 4 hours.
I am not sure where the 3 minutes / 180 seconds is coming from?