1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 23:54:04 +00:00
tenancy/src/Commands
lukinovec 0dc187510b
[4.x] Clean up expired impersonation tokens instead of just aborting, add command for cleaning up expired tokens (#1387)
This PR makes the expired/invalid tenant impersonation tokens get
deleted instead of just aborting with 403.

The PR also adds a command (ClearExpiredImpersonationTokens) used like
`php artisan tenants:purge-impersonation-tokens`. As the name suggests,
it clears all expired impersonation tokens (= tokens older than
`UserImpersonation::$ttl`).

Resolves #1348

---------

Co-authored-by: Samuel Štancl <samuel@archte.ch>
2025-10-28 14:14:52 +01:00
..
ClearPendingTenants.php Improve commands CLI output (#1030) 2022-12-14 15:08:00 +01:00
CreatePendingTenants.php Pending tenants refactor (BC break) 2025-08-25 00:01:02 +02:00
CreateUserWithRLSPolicies.php Refactor DatabaseConfig, minor DB manager improvements, resolve todos 2025-10-13 16:01:34 +02:00
Down.php [4.x] Add pending tenants (modified #782) (#869) 2022-10-31 12:14:44 +01:00
Install.php install: support starring using GH CLI 2025-09-26 13:49:15 +02:00
Link.php fix phpstan errors 2024-08-06 04:35:25 +02:00
Migrate.php [4.x] Use --database in tenants:migrate as the template connection (#1386) 2025-08-25 15:57:15 +02:00
MigrateFresh.php Add --force option to tenants:migrate-fresh (#1391) 2025-08-25 15:47:16 +02:00
MigrateFreshOverride.php Only delete tenants in MigrateFreshOverride if the tenants table exists (#1007) 2022-11-18 15:58:04 +01:00
PurgeImpersonationTokens.php [4.x] Clean up expired impersonation tokens instead of just aborting, add command for cleaning up expired tokens (#1387) 2025-10-28 14:14:52 +01:00
Rollback.php [4.x] General code cleanup (#1278) 2024-12-31 00:35:46 +01:00
Run.php [4.x] Fix tenants:run argument parsing (#1287) 2025-01-11 12:03:09 +01:00
Seed.php [4.x] Add pending tenants (modified #782) (#869) 2022-10-31 12:14:44 +01:00
TenantDump.php Fix code style (php-cs-fixer) 2024-03-29 20:42:20 +00:00
TenantList.php fix phpstan errors 2024-08-06 04:35:25 +02:00
Tinker.php [4.x] General code cleanup (#1278) 2024-12-31 00:35:46 +01:00
Up.php [4.x] Add pending tenants (modified #782) (#869) 2022-10-31 12:14:44 +01:00