Merge pull request #269 from muir/doc-client-not-cached

doc: document lack of client caching
This commit is contained in:
Tim Möhlmann 2023-02-09 12:03:21 +02:00 committed by GitHub
commit 5633b5518a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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