From d258fc4c29722ca12f4e54a6ca2e7c58e54b1efa Mon Sep 17 00:00:00 2001 From: David Sharnoff Date: Fri, 27 Jan 2023 10:08:09 -0800 Subject: [PATCH] document lack of client caching --- pkg/op/storage.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/op/storage.go b/pkg/op/storage.go index 153cd21..28fc6a3 100644 --- a/pkg/op/storage.go +++ b/pkg/op/storage.go @@ -67,6 +67,8 @@ type ClientCredentialsStorage interface { } type OPStorage interface { + // GetClientByClientID loads a Client. The returned Client is never cached and is only used to + // handle the current request. GetClientByClientID(ctx context.Context, clientID string) (Client, error) AuthorizeClientIDSecret(ctx context.Context, clientID, clientSecret string) error SetUserinfoFromScopes(ctx context.Context, userinfo oidc.UserInfoSetter, userID, clientID string, scopes []string) error