I have an app that uses Owin/WsFederation to authenticate users with SAML tokens. In Startup.Auth, we set a claim with the associated encoded SAML token, and retrieve it upon login.
The problem is that the token only has a life span on 1 hour. So in the course of normal app usage, the token will expire, and services that rely upon it start breaking.
How would I go about silently renewing our SAML tokens, using Owin/WsFederation, if they have expired?