syz/oauth/storage/op.go

50 lines
1.8 KiB
Go

package storage
import (
"context"
"github.com/go-jose/go-jose/v4"
"github.com/zitadel/oidc/v3/pkg/oidc"
"github.com/zitadel/oidc/v3/pkg/op"
)
type OPStorage struct {
op.OPStorage
}
// GetClientByClientID loads a Client. The returned Client is never cached and is only used to
// handle the current request.
func (s *Storage) GetClientByClientID(ctx context.Context, clientID string) (op.Client, error) {
panic("not implemented") // TODO: Implement
}
func (s *Storage) AuthorizeClientIDSecret(ctx context.Context, clientID string, clientSecret string) error {
panic("not implemented") // TODO: Implement
}
// SetUserinfoFromScopes is deprecated and should have an empty implementation for now.
// Implement SetUserinfoFromRequest instead.
func (s *Storage) SetUserinfoFromScopes(ctx context.Context, userinfo *oidc.UserInfo, userID string, clientID string, scopes []string) error {
panic("not implemented") // TODO: Implement
}
func (s *Storage) SetUserinfoFromToken(ctx context.Context, userinfo *oidc.UserInfo, tokenID string, subject string, origin string) error {
panic("not implemented") // TODO: Implement
}
func (s *Storage) SetIntrospectionFromToken(ctx context.Context, userinfo *oidc.IntrospectionResponse, tokenID string, subject string, clientID string) error {
panic("not implemented") // TODO: Implement
}
func (s *Storage) GetPrivateClaimsFromScopes(ctx context.Context, userID string, clientID string, scopes []string) (map[string]any, error) {
panic("not implemented") // TODO: Implement
}
func (s *Storage) GetKeyByIDAndClientID(ctx context.Context, keyID string, clientID string) (*jose.JSONWebKey, error) {
panic("not implemented") // TODO: Implement
}
func (s *Storage) ValidateJWTProfileScopes(ctx context.Context, userID string, scopes []string) ([]string, error) {
panic("not implemented") // TODO: Implement
}