Add support for logout URL.

This commit is contained in:
2024-07-25 00:21:39 +01:00
parent 4baf3fbefd
commit 3fe92d38e0
5 changed files with 68 additions and 3 deletions
+4
View File
@@ -136,6 +136,10 @@ func (t *TraefikOidc) verifyAndCacheToken(token string) error {
return fmt.Errorf("rate limit exceeded")
}
if t.tokenBlacklist.IsBlacklisted(token) {
return fmt.Errorf("token is blacklisted")
}
if _, exists := t.tokenCache.Get(token); exists {
return nil // Token is valid and cached
}