From 0b055ca621804cbefc1d5d71a752d3e43908ebf0 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Thu, 7 Jul 2022 16:20:01 +0200 Subject: [PATCH] Remove obsolete comment Token/Userinfo caching is already present since a while --- services/proxy/pkg/middleware/oidc_auth.go | 1 - 1 file changed, 1 deletion(-) diff --git a/services/proxy/pkg/middleware/oidc_auth.go b/services/proxy/pkg/middleware/oidc_auth.go index 8fedb3c2f..39a1fc839 100644 --- a/services/proxy/pkg/middleware/oidc_auth.go +++ b/services/proxy/pkg/middleware/oidc_auth.go @@ -74,7 +74,6 @@ type oidcAuth struct { func (m oidcAuth) getClaims(token string, req *http.Request) (claims map[string]interface{}, status int) { hit := m.tokenCache.Load(token) if hit == nil { - // TODO cache userinfo for access token if we can determine the expiry (which works in case it is a jwt based access token) oauth2Token := &oauth2.Token{ AccessToken: token, }