mirror of
https://github.com/lukaszraczylo/traefikoidc.git
synced 2026-06-05 22:44:17 +00:00
First step in improvement of caching mechanism.
This commit is contained in:
+3
-1
@@ -220,7 +220,9 @@ func TestVerifyToken(t *testing.T) {
|
||||
}
|
||||
|
||||
if tc.cacheToken {
|
||||
ts.tOidc.tokenCache.Set(tc.token, time.Now().Add(1*time.Hour))
|
||||
ts.tOidc.tokenCache.Set(tc.token, map[string]interface{}{
|
||||
"empty": "claim",
|
||||
}, 60)
|
||||
}
|
||||
|
||||
err := ts.tOidc.VerifyToken(tc.token)
|
||||
|
||||
Reference in New Issue
Block a user