Versions in this module Expand all Collapse all v0 v0.7.1 Jan 15, 2026 v0.7.0 Jan 15, 2026 Changes in this version + const DefaultAccessTokenTTL + const DefaultAuthCodeTTL + const DefaultCleanupInterval + const DefaultInvalidatedCodeTTL + const DefaultPKCETTL + const DefaultPendingAuthorizationTTL + const DefaultRefreshTokenTTL + const TypeMemory + var ErrAlreadyExists = errors.New("storage: item already exists") + var ErrExpired = errors.New("storage: item expired") + var ErrInvalidBinding = errors.New("storage: token binding validation failed") + var ErrNotFound = errors.New("storage: item not found") + type ClientRegistry interface + RegisterClient func(ctx context.Context, client fosite.Client) error + type Config struct + Type Type + func DefaultConfig() *Config + type PendingAuthorization struct + ClientID string + CreatedAt time.Time + InternalState string + PKCEChallenge string + PKCEMethod string + RedirectURI string + Scopes []string + State string + UpstreamNonce string + UpstreamPKCEVerifier string + type PendingAuthorizationStorage interface + DeletePendingAuthorization func(ctx context.Context, state string) error + LoadPendingAuthorization func(ctx context.Context, state string) (*PendingAuthorization, error) + StorePendingAuthorization func(ctx context.Context, state string, pending *PendingAuthorization) error + type RunConfig struct + Type string + type Storage interface + Close func() error + type Type string + type UpstreamTokenStorage interface + DeleteUpstreamTokens func(ctx context.Context, sessionID string) error + GetUpstreamTokens func(ctx context.Context, sessionID string) (*UpstreamTokens, error) + StoreUpstreamTokens func(ctx context.Context, sessionID string, tokens *UpstreamTokens) error + type UpstreamTokens struct + AccessToken string + ClientID string + ExpiresAt time.Time + IDToken string + RefreshToken string + Subject string + func (t *UpstreamTokens) IsExpired(now time.Time) bool