1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 08:04:03 +00:00
tenancy/src
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
..
Actions Add tenant parameter BEFORE existing prefixes by default, add tenantParameterBeforePrefix() to allow customizing this (#1393) 2025-09-03 15:56:12 +02:00
Bootstrappers [4.x] Make TenancyUrlGenerator inherit the original UrlGenerator's scheme (http or https) (#1390) 2025-10-28 13:26:50 +01:00
Commands [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
Concerns Resolve misc todos, fix phpstan error 2025-10-20 01:57:02 +02:00
Contracts Features refactor 2025-08-31 23:18:44 +02:00
Controllers [4.x] General code cleanup (#1278) 2024-12-31 00:35:46 +01:00
Database Pending tenants: Add getPendingAttributes() 2025-10-28 12:50:13 +01:00
Enums Make RouteMode enum backed (#1362) 2025-06-02 20:34:49 +02:00
Events Pending tenants refactor (BC break) 2025-08-25 00:01:02 +02:00
Exceptions remove ignition dependencies 2025-06-18 23:29:24 +02:00
Facades [4.x] Support database cache store tenancy (#1290) (resolve #852) 2025-08-08 00:54:01 +02:00
Features [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
Jobs Fix assert: run createDatabase() outside assert() 2025-10-16 01:10:07 +02:00
Listeners Resolve misc todos, fix phpstan error 2025-10-20 01:57:02 +02:00
Middleware Merge dev branch (minor breaking changes) 2025-10-14 17:32:44 +02:00
Overrides phpstan: Remove ignore that is no longer necessary 2025-10-13 16:12:01 +02:00
Resolvers [4.x] Support database cache store tenancy (#1290) (resolve #852) 2025-08-08 00:54:01 +02:00
ResourceSyncing [4.x] Cleanup (#1317) 2025-02-20 20:49:09 +01:00
RLS [4.x] TableRLSManager refactor, comment constraints (#1354) 2025-07-03 21:12:04 +02:00
UniqueIdentifierGenerators [4.x] Add ULIDGenerator (#1332) 2025-03-18 19:00:35 +01:00
helpers.php resolve minor todos 2025-08-18 15:05:17 +02:00
Tenancy.php Resolve misc todos, fix phpstan error 2025-10-20 01:57:02 +02:00
TenancyServiceProvider.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