refactor deletion

Co-authored-by: Jörn Dreyer <j.dreyer@opencloud.eu>
Co-authored-by: Michael Barz <m.barz@opencloud.eu>
Signed-off-by: Christian Richter <c.richter@opencloud.eu>
This commit is contained in:
Christian Richter
2026-02-25 14:02:09 +01:00
committed by Christian Richter
co-authored by Jörn Dreyer Michael Barz
parent cb38aaab16
commit 6a0fd89475
2 changed files with 38 additions and 53 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ package middleware
import (
"context"
"encoding/base64"
"fmt"
"net"
"net/http"
"strings"
@@ -128,7 +129,7 @@ func (m *OIDCAuthenticator) getClaims(token string, req *http.Request) (map[stri
// create an additional entry mapping subject to session id
if sub := aClaims.Subject; sub != "" {
err = m.userInfoCache.Write(&store.Record{
Key: sub,
Key: fmt.Sprintf("%s.%s", sub, sid),
Value: []byte(sid),
Expiry: time.Until(expiration),
})