I have set the lifetime of my access and refresh token for testing. Now, I'm, wondering why the access token did not follow its lifetime and is still valid until the refresh token lifetime? I'm not sure if I set it right but here's how I configure the token lifetime:
var accessTokenLifetime = 300;
var absoluteRefreshTokenLifetime = 600;
resultClient = new Client
{
AllowedGrantTypes = GrantTypes.ResourceOwnerPassword,
AllowOfflineAccess = true,
IdentityTokenLifetime = accessTokenLifetime,
AccessTokenLifetime = accessTokenLifetime,
UpdateAccessTokenClaimsOnRefresh = true,
RefreshTokenUsage = TokenUsage.OneTimeOnly,
RefreshTokenExpiration = TokenExpiration.Absolute,
AbsoluteRefreshTokenLifetime = absoluteRefreshTokenLifetime
};
Note: I removed some of the properties there.
Any thoughts?