Original bug report:
So when I set unity.saml.refreshInterval to a value <=358 , the auto refresh works just fine. If I set it to anything >358 it stops working. The logs still show the refresh action and the various entityIDs being updated but it behaves as if no changes were made to the metadata source.
For this test I added one new entityID to the metadata source, wait for the refresh and test the login. Also tried in the opposite direction i.e. removing one entityID, but with the same results.