mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
Fixes #2864. DeleteUserPool cascaded to groups and (since #2858) identity providers, but left userStore and resourceServerStore untouched. A pool id can be pinned with the floci:override-id tag, so unlike real AWS (where a pool id is never reused) a pool recreated on the same id inherited the deleted pool's users, password hashes included, and resource servers. Adds the same prefix-scan cascade already used for groups/identity providers to users and resource servers, and adds regression tests for both cases mirroring the identity-provider orphan-reuse test from #2858. Verified by disabling the new cascade and confirming both new tests fail with the exact expected count mismatch before restoring it. Full cognito package regression (368 tests) passes clean.