Versions in this module Expand all Collapse all v0 v0.1.0 May 21, 2026 Changes in this version + type Grant struct + GrantedBy string + Issuer string + Module string + Role string + Subject string + type Holding struct + GrantedAt time.Time + GrantedBy string + Issuer string + Module string + Role string + Subject string + type Identity struct + DisplayName string + Email string + EmailVerified bool + Issuer string + Subject string + type Principal struct + DisplayName string + Email string + EmailVerified bool + Issuer string + Roles []string + Subject string + func (p *Principal) HasRole(role string) bool + type Resolver struct + Module string + Store Store + func (r *Resolver) Resolve(ctx context.Context, id Identity) (*Principal, error) + type Store interface + Grant func(ctx context.Context, g Grant) error + Holders func(ctx context.Context, role string) (holdings []Holding, capped bool, err error) + Revoke func(ctx context.Context, issuer, subject, module, role string) error + Roles func(ctx context.Context, issuer, subject, module string) ([]string, error) + func NewPostgresStore(db *sql.DB) Store + func NewSQLiteStore(db *sql.DB) Store