Expand description
Wraps an AuthProvider to resolve transitive local-group membership per request
Wraps an inner crate::types::AuthProvider and resolves the caller’s transitive local-group membership
once per request – the one resolution site upstream of every consumer (is_admin(),
caller_selectors/selector_matches’s group: arm).
Structs§
- Membership
Provider - Wraps
inner, fillingAuthContext.membershipswithgroups.current()’s closure overctx.emailafterinnerauthenticates the request.
Traits§
- Group
Snapshot - The group-snapshot seam
MembershipProviderresolves through – implemented byDbGroupsSourcein production, and by a canned/error-returning test double inrust/auth/tests/membership_tests.rs, so this crate’s no-DB test policy can exercise the wrapper’s success and failure paths without a live Postgres.