leonibr / community-extensions-cache-postgres

A PostgreSQL Implementation of IDistributedCache interface. Using Postgresql as distributed cache in Asp.Net Core. NetStandard 2.0
59 stars 17 forks source link

Library doesn't really work for refresh tokens #64

Open sherlock1982 opened 7 months ago

sherlock1982 commented 7 months ago

When I call AcquireTokenByAuthorizationCode with ConfidentialClientApplication I got a refresh token.

It doesn't have any expiration info and therefore DistributedCacheEntryOptions parameters comes with all nulls. The code in GetOptions puts there default sliding expiration time of 20 minutes.

This is wrong because this token generally should be treated as never expired.

leonibr commented 6 months ago

Can you provide more context? I can't see any relation between OAuth token and this library, I am not sure I understand the issue