I have projects using SAML2 to authenticate against an ADFS server, we get send into a redirect auth flow to the ADFS server every hour, no matter how much we use the application.
We have set the config.setMaximumAuthenticationLifetime(36000), to 10 hours, but this still happens.
Then i noticed the notOnOrAfter was only 1 hour after login time, so now we have also updated the Relying Party Trust's token lifetime to 10 hours on the ADFS server. We now get a proper profile, with notOnOrAfter property set 10 hour into the future.
But we still get send to the ADFS server once every hour in our application.
I can't find anything in the SAML config or client to hint that i should set any other properties. I would of thought, that the token lifetime, and the setMaximumAuthenticationLifetime set to the same value, would stop the redirection to the ADFS server every hour-
Have i completely misinterpreted this feature or is it not working as intended?
This is happening in:
play - 2.7.3
pac4j-saml - 3.8.2
play-pac4j - 8.0.1
Will verify with a 4.x.x and 10.x.x as soon as possible
Best regards, Martin