Closed cleftheris closed 5 years ago
Please elaborate.
A scenario. Protecting an API resource using reference tokens using IdentityServer4. The API is using the AccessTokenValidation middleware which under the hood uses this library and is configured to leverage the distributed cache feature.
What I am suggesting is to expose a webhook endpoint inside the AccessTokenMiddleware that can be called in the backchanel by the IdentityServer towards the API so the cache entry can be purged immediately.
Is the above far fetched? Right now I have dropped the caching to one minute which is quite ok & I can always disable cache but I wanted to share my thoughts.
I see.
This would be useful, but is out of scope for this library. The cache is meant to be really short-lived, something between 5sec to 1 minute.
I heard that there might be a spec upcoming that details the token service to API revocation push mechanism. Once this is available, we can re-visit.
Thanks @leastprivilege
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue.
Using reference tokens. Is there a way to keep caching the results of the introspection endpoint (not disabling the cache) and at the same time have an incoming callback fire immediately when hitting the revocation endpoint?