mirror of
https://github.com/lukaszraczylo/traefikoidc.git
synced 2026-11-04 07:53:59 +00:00
fix(security): scope introspection cache keys to the middleware instance
The introspection cache used the raw token as key in a shared cache. Two instances with different providers or clients shared results. Keys now use the same instance prefix as the verified-token cache.
This commit is contained in:
+1
-1
@@ -812,7 +812,7 @@ func (t *TraefikOidc) RevokeToken(token string) {
|
||||
// from the introspection cache after revocation. Next request
|
||||
// re-introspects and sees active=false.
|
||||
if t.introspectionCache != nil {
|
||||
t.introspectionCache.Delete(token)
|
||||
t.introspectionCache.Delete(t.introspectionKey(token))
|
||||
}
|
||||
|
||||
d := blacklistDuration(token)
|
||||
|
||||
Reference in New Issue
Block a user