Versions in this module Expand all Collapse all v0 v0.58.0 Oct 27, 2026 v0.57.0 Oct 26, 2026 Changes in this version + var ErrInvalid = errors.New("invalid authorization_details") + type Error struct + Code ErrorCode + Reason string + func (e Error) Error() string + type ErrorCode string + const CodeInvalidAuthorizationDetails + const CodeInvalidRequest + type Pending struct + func (p *Pending) Grant(ctx context.Context, req Request) (json.RawMessage, error) + type Registry struct + func New(types map[string]Type) (*Registry, error) + func (r *Registry) Parse(raw, grantType string) (*Pending, error) + type Request struct + Actor string + ActorTokenPresent bool + ClientID string + Entries []json.RawMessage + GrantType string + GrantedAudience []string + RequestedScopes []string + RequestedTokenType string + Subject Subject + type Result struct + Entries []json.RawMessage + type Subject struct + Audience []string + Claims map[string]any + ClientID string + Expiry time.Time + External bool + IssuedAt time.Time + Issuer string + JWTID string + Subject string + type Type struct + Grant func(context.Context, Request) (Result, error) + GrantTypes []string