puiterwijk / flask-oidc

OpenID Connect support for Flask
BSD 2-Clause "Simplified" License
154 stars 217 forks source link

add token caching #98

Open aaronjolson opened 4 years ago

aaronjolson commented 4 years ago

Add token caching and mechanism for refusing to send known bad tokens to provider. This allows us to keep the number of calls to a provider down in order to avoid incurring extra costs and/or bumping into rate limits.

Includes two class methods for being able to clear the instance's known good and known bad token caches.

svintit commented 4 years ago

@aaronjolson If you want this resolved i'm maintaining a fork of this with some added extensibility. Feel free to open a PR here: