First step in improvement of caching mechanism.

This commit is contained in:
2024-10-04 14:05:12 +01:00
parent 93b49b6d17
commit 2bb1debeb3
4 changed files with 86 additions and 35 deletions
+3 -1
View File
@@ -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)