Versions in this module Expand all Collapse all v0 v0.51.1 Sep 22, 2026 v0.51.0 Sep 22, 2026 Changes in this version + const MetadataKey + const UnauthenticatedSentinel + var ErrInvalidBinding = errors.New("invalid identity binding") + var ErrNotFound = session.ErrSessionNotFound + func AddOwnedSession(ctx context.Context, manager Store, sess session.Session) error + func BindOwner(ctx context.Context, sess session.Session) error + func Check(r *http.Request, id string, lookup Lookup) error + func Format(iss, sub string) (string, error) + func FromIdentity(identity *auth.Identity) (string, error) + func NewMiddleware(extract func(*http.Request) (string, error), lookup Lookup, ...) (func(http.Handler) http.Handler, error) + func Parse(value string) (iss, sub string, ok bool) + func RequestID(r *http.Request, queryKey string) (string, error) + func Validate(stored string, identity *auth.Identity) error + func WriteOwnershipError(w http.ResponseWriter, requestID any, err error) + type Lookup func(context.Context, string) (string, error) + type Store interface + AddSession func(session.Session) error + LookupOwner func(context.Context, string) (string, error)