Can someone explain how to implement expiration acceleration using the new Owin WS-Federation plugin ?
Client-side in WS-Fedeartion configuration I see that there are several events , for example:
Notifications = new WsFederationAuthenticationNotifications
{
SecurityTokenReceived = ...,
AuthenticationFailed = ...,
RedirectToIdentityProvider = ...,
MessageReceived = ...,
SecurityTokenValidated = ....
},
But since the lack of documentation , I can’t understand where exactly?
At the moment, my STS is issuing tokens with an absolute expiration :
protected override Lifetime GetTokenLifetime(Lifetime requestLifetime)
{
var lifetime = new Lifetime(DateTime.UtcNow, DateTime.UtcNow.AddMinutes(5));
return lifetime;
}
Any help is appreciated.
source
share