Versions in this module Expand all Collapse all v0 v0.1.0 Aug 3, 2026 Changes in this version + func WithIdentity(ctx context.Context, id *Identity) context.Context + func WithTenant(ctx context.Context, t *Tenant) context.Context + type APIKey struct + Hash string + TenantID string + UserID string + type ClaimsMapping struct + RolesClaim string + TenantIDClaim string + UserIDClaim string + UsernameClaim string + type ClientCert struct + Fingerprint string + TenantID string + UserID string + type Identity struct + Roles []string + TenantID string + UserID string + Username string + func IdentityFromContext(ctx context.Context) (*Identity, bool) + type OIDCProvider struct + ClaimsMapping ClaimsMapping + ClientID string + ClientSecret string + Domains []string + IssuerURL string + Name string + ProviderID string + Scopes []string + TenantID string + type Tenant struct + Active bool + DisplayName string + ID string + func TenantFromContext(ctx context.Context) (*Tenant, bool)