strapi-plugin-magic-sessionmanager 4.19.1 → 4.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -0
- package/README.md +189 -35
- package/dist/admin/{Analytics-BElmzyNJ.js → Analytics-BqdZIBV4.js} +1 -1
- package/dist/admin/{Analytics-BqFlgLnN.mjs → Analytics-C-OLLzoB.mjs} +1 -1
- package/dist/admin/{App-0thsC_P9.mjs → App-BswHmNQT.mjs} +338 -4
- package/dist/admin/{App-D_J2eeEG.js → App-Cx9v6n_7.js} +337 -3
- package/dist/admin/{OnlineUsersWidget-DMZBwqdY.js → OnlineUsersWidget-BRmQPPp9.js} +1 -1
- package/dist/admin/{OnlineUsersWidget-BgJ1ws-5.mjs → OnlineUsersWidget-Dusgjc1d.mjs} +1 -1
- package/dist/admin/{Settings-FOkui_ke.js → Settings-DWGuf_Z3.js} +288 -65
- package/dist/admin/{Settings-QN3Mu4AQ.mjs → Settings-DZyQheUS.mjs} +258 -35
- package/dist/admin/{de-CEyi4lpp.js → de-24TPqzG6.js} +94 -1
- package/dist/admin/{de-uGKSKVYD.mjs → de-DUnrmFWk.mjs} +94 -1
- package/dist/admin/{en-CSXeJYKy.js → en-8mBSkWOF.js} +94 -1
- package/dist/admin/{en-Yu7tfwqx.mjs → en-D8J__tyF.mjs} +94 -1
- package/dist/admin/{es-iNG9Amf9.mjs → es-BgpgWdk0.mjs} +94 -1
- package/dist/admin/{es-BrKqXhAU.js → es-ChUKey-Q.js} +94 -1
- package/dist/admin/{fr-DKZNfdlH.js → fr-DE_CWmgq.js} +94 -1
- package/dist/admin/{fr-CaFICHlf.mjs → fr-k1MHYKJo.mjs} +94 -1
- package/dist/admin/{index-DEYtqPc3.js → index-Ceh3Q1Ki.js} +622 -46
- package/dist/admin/{index-h-ksmM8A.mjs → index-meLDPPwt.mjs} +638 -62
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +2 -2
- package/dist/admin/{pt-IEagyVDL.js → pt-BjqU5ioB.js} +94 -1
- package/dist/admin/{pt-Bz2hWVrq.mjs → pt-DPO4DmDc.mjs} +94 -1
- package/dist/admin/{settingsTabs-D02CuEvs.mjs → settingsTabs-C1q5iMMw.mjs} +5 -1
- package/dist/admin/{settingsTabs-N4TFn-mw.js → settingsTabs-CfquZuKH.js} +5 -1
- package/dist/server/index.js +1965 -15
- package/dist/server/index.mjs +1965 -15
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,41 @@
|
|
|
1
|
+
# [4.21.0](https://github.com/Schero94/Magic-Sessionmanager/compare/v4.20.0...v4.21.0) (2026-11-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* View as admin, a read-only permission preview with anti-escalation rules ([#42](https://github.com/Schero94/Magic-Sessionmanager/issues/42)) ([687bc32](https://github.com/Schero94/Magic-Sessionmanager/commit/687bc32bd027d961b3c7c1bb3aeddcb184bee3f7))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Release type: minor (`feat`). Additive: one RBAC action (`impersonate.admins`, "View as admin") and two admin routes; no stored data changes.
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **View as admin (read-only permission preview).** A new row action **View as** in Session Manager › Admin panel (permission **View as admin**, `impersonate.admins`) shows, after a reason and a duration of 15 or 30 minutes, which content types and actions another admin can use, their roles and their other permissions, under a banner "You are viewing as … · read-only · ends in mm:ss · End". It creates no session and no token. Anti-escalation on the server: nobody views themselves, nobody views a Super Admin (Super Admins included), and a non-Super-Admin only views an admin whose effective permissions are a subset of their own, compared with Strapi's permission ceiling rules (a test checks parity with Strapi 5.63's `isPermissionWithinCeiling`). Strapi 5.63 offers no documented way to sign a browser in as another admin, so no admin session is created; README › View as admin explains why.
|
|
14
|
+
|
|
15
|
+
# [4.20.0](https://github.com/Schero94/Magic-Sessionmanager/compare/v4.19.1...v4.20.0) (2026-11-25)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* impersonate app users with a one-time hand-off, restrictions and audit ([#41](https://github.com/Schero94/Magic-Sessionmanager/issues/41)) ([940e6f3](https://github.com/Schero94/Magic-Sessionmanager/commit/940e6f316be961bd69c42734fbd97171245cdbc4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
Release type: minor (`feat`: impersonation of app users). Additive: a new RBAC action, four admin routes, one public Content API route, a new internal content type and a settings key that is off by default. No existing route, response or permission changes.
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **Impersonate app users.** Admins whose role holds the new permission **Impersonate app users** (Settings › Roles › Plugins › Session Manager › Impersonation; Super Admin holds it automatically) can act as a Users & Permissions user for 15, 30 or 60 minutes to reproduce a problem. **Impersonate…** in the user's Sessions panel in the Content Manager asks for a reason (3 to 255 characters), the duration and whether to email the user, then hands over a short-lived credential once.
|
|
28
|
+
* **Short-lived credential only.** In refresh mode (`jwtManagement: 'refresh'`) a Strapi session is created through `strapi.sessionManager('users-permissions')` on its own device id and marked in the session metadata, which Strapi keeps across refresh; in legacy mode a JWT whose `exp` is the end of the impersonation. Both get a Magic session row. The user's password is never touched or shown, and no long-lived token is issued.
|
|
29
|
+
* **Frontend hand-off.** With `impersonation.frontendUrl` in the plugin config (https only, origin on `impersonation.allowedFrontendOrigins`), the admin panel posts a one-time code to that URL in a new tab (HTTP POST, never in a URL). The frontend exchanges it at `POST /api/magic-sessionmanager/impersonation/exchange` within 60 seconds; the code is stored as a hash and works once (atomic). Without the setting the token is shown once with a copy button and a warning.
|
|
30
|
+
* **What an impersonation cannot do.** A global middleware refuses, with 403 and `details.reason` `impersonation-credentials`, `-account` or `-sessions`: every `/auth/*` route except `POST /auth/refresh` and `GET /auth/sessions` (password change and reset, email confirmation, sign-in, register, providers, logout, ending sessions), `/connect/*`, writes to `/users`, the plugin's own write routes (logout, ending own sessions), the data export (`GET /my-data`), "This wasn't me" links, Magic Link and passwordless sign-in, and GraphQL mutations of that kind. Every response carries `X-Magic-Impersonation: true`.
|
|
31
|
+
* **Ending.** Impersonations end at their time (request check plus a sweep every 30 seconds), with **End impersonation** in the dialog, in the Sessions panel, or in the new list **Settings › Session Manager › Impersonation › Active impersonations**, and all at once when the switch is turned off.
|
|
32
|
+
* **Switch and security log.** The new **Impersonation** settings tab has **Allow impersonation**, off by default and a protected setting (`settings.update`). `impersonation.started`, `.ended`, `.expired` and `.refused` go to the security log with the real admin as actor, the user as target, the reason and the duration; no code or token. The events stay when the admin's account is deleted.
|
|
33
|
+
* **Limits.** Ten starts per admin per ten minutes; ten code exchanges per minute per IP address. Admin API tokens cannot impersonate.
|
|
34
|
+
|
|
35
|
+
### Migration
|
|
36
|
+
|
|
37
|
+
* Nothing to do. The feature stays off until a Super Admin turns on **Allow impersonation**. A new table `magic_sessions_impersonations` is created at start-up. To use the frontend hand-off, add `impersonation.frontendUrl` to the plugin config and expose the `X-Magic-Impersonation` header through `strapi::cors` (see README › Impersonation).
|
|
38
|
+
|
|
1
39
|
## [4.19.1](https://github.com/Schero94/Magic-Sessionmanager/compare/v4.19.0...v4.19.1) (2026-11-25)
|
|
2
40
|
|
|
3
41
|
|
package/README.md
CHANGED
|
@@ -42,6 +42,7 @@ Live docs: [https://schero94.github.io/Magic-Sessionmanager/](https://schero94.g
|
|
|
42
42
|
- [Optional route policy: `session-required`](#optional-route-policy-session-required)
|
|
43
43
|
- [Admin API and permissions](#admin-api-and-permissions)
|
|
44
44
|
- [Admin activity and sign-in history](#admin-activity-and-sign-in-history)
|
|
45
|
+
- [Impersonation](#impersonation)
|
|
45
46
|
- [Running several instances (Railway replicas, pm2 cluster)](#running-several-instances-railway-replicas-pm2-cluster)
|
|
46
47
|
- [Performance](#performance)
|
|
47
48
|
- [Security and privacy](#security-and-privacy)
|
|
@@ -626,6 +627,7 @@ Prefix `/api/magic-sessionmanager`. Every route requires a Users & Permissions J
|
|
|
626
627
|
| DELETE | `/my-sessions/:sessionId` | End one own session that is not the current one (reason `manual`) | `{ message, success, alreadyTerminated }`; 400 for the current session, 404 for unknown or foreign IDs |
|
|
627
628
|
| GET | `/my-data` | Own sessions and security events as a JSON download (GDPR Art. 15); 3 per hour | `{ exportedAt, user, sessions, securityEvents }` with `Content-Disposition: attachment`; no tokens, hashes or device keys |
|
|
628
629
|
| GET, POST | `/not-me` | **Public** (no JWT): the "This wasn't me" link of the security emails; GET shows a confirmation, POST `{ token, scope: 'session' \| 'all' }` ends sessions | HTML page, or `{ data: { ended, scope } }` with `Accept: application/json`; 410 when the link is invalid, expired or used |
|
|
630
|
+
| POST | `/impersonation/exchange` | **Public** (no JWT): exchanges the one-time code of the [impersonation](#impersonation) hand-off, `{ code }`; 10 per minute per IP | `{ data: { jwt, refreshToken?, expiresAt, user, impersonation } }`; 400 for any unusable code |
|
|
629
631
|
|
|
630
632
|
`POST /api/auth/logout` also ends the current session; the plugin mounts it when Users & Permissions does not provide it.
|
|
631
633
|
|
|
@@ -761,44 +763,52 @@ The **Admin panel sessions** routes need two more permissions, which only the Su
|
|
|
761
763
|
| `plugin::magic-sessionmanager.admin-activity.read` | View admin activity | Sign-in history, Activity, Recent security activity and the Security activity page, CSV exports and changing the Admin activity settings (also needs read) |
|
|
762
764
|
| `plugin::magic-sessionmanager.settings.update` | Change protected settings (location lookup, webhooks, security log, sign-in policies) | Changing IP location lookup, provider, lookup failure mode and database file, team notification webhooks, the sign-in and session policies (lockout, trusted addresses, session limit, password-change sign-out, role rules), the signed webhook and its **Send test**, the event selection, impossible travel and shortened session IPs, and (with View admin activity) the security log settings. Since 4.17; Super Admin only by default |
|
|
763
765
|
| `plugin::magic-sessionmanager.lockouts.unlock` | Unlock locked sign-ins | **Unlock** in Login protection › Locked now (also needs `access`) |
|
|
766
|
+
| `plugin::magic-sessionmanager.impersonate.users` | Impersonate app users | Starting, listing and ending impersonations of app users (also needs `access` and the **Allow impersonation** switch); see [Impersonation](#impersonation). Since 4.20 |
|
|
767
|
+
| `plugin::magic-sessionmanager.impersonate.admins` | View as admin (read-only permission preview) | **View as** in the Admin panel view, and listing and ending such previews (also needs `access` and the switch); see [View as admin](#view-as-admin-read-only-permission-preview). Since 4.20 |
|
|
764
768
|
|
|
765
769
|
**What the admin panel view shows about other admins (4.17).** Names, emails and roles of admins are Strapi's own user data. The Admin panel view and the sign-in history return them only to roles that may also read them in Settings › Users: email and name need Strapi's **Read** permission on Users (`admin::users.read`), role names need it or **Read** on Roles (`admin::roles.read`). Without them the list shows "Admin #12", "Email hidden" and "Hidden" (roles), and the search matches the admin id only. Every admin always sees their own row. Grant `admin::users.read` to roles that should keep seeing names and emails.
|
|
766
770
|
|
|
767
|
-
**Protected settings (4.17).** `PUT /settings` still needs only `access`, so roles that change the session, login-protection, alert-email and retention options keep working. Changing a protected key needs **Change protected settings** as well, else 403 with `error.details.reason: "settings-update-permission"`: `enableGeolocation`, `geoIpProvider`, `geoLookupFailureMode`, `geoIpDatabasePath`, `enableWebhooks`, `discordWebhookUrl`, `slackWebhookUrl`, every security log key (those also keep needing **View admin activity**, reason `admin-activity-permission`) and the sign-in and session policy keys (`maxFailedLoginsPerAccount`, `lockoutWindowMinutes`, `lockoutDurationMinutes`, `lockoutTrustedAddresses`, `lockoutNotifyUser`, `recordUserSignInEvents`, `maxSessionsPerUser`, `sessionLimitPolicy`, `endOtherSessionsOnPasswordChange`, `roleRules`), and the detection and integration keys (`impossibleTravelEnabled`, `impossibleTravelSpeedKmh`, `impossibleTravelMinDistanceKm`, `impossibleTravelAction`, `webhookEvents`, `genericWebhookEnabled`, `genericWebhookUrl`, `genericWebhookSecret`, `sessionIpAnonymize`). The new-device and impossible-travel email switches stay with `access`, like the other alert emails. Sending a protected key back with its stored value is not a change, so these roles can still save the whole form. The admin UI shows these controls read-only for them.
|
|
768
|
-
|
|
769
|
-
| Method | Path | Admin UI action
|
|
770
|
-
| -------- | -------------------------------------------------------------- |
|
|
771
|
-
| GET | `/sessions` | Sessions dashboard: `?page=&pageSize=` (1-100), `status`, `reason`, `search`, `sort`; see below
|
|
772
|
-
| GET | `/sessions/active` | Active sessions only; same paging parameters
|
|
773
|
-
| GET | `/sessions/stats` | Dashboard cards and widget: counts only, cached 5 seconds per process
|
|
774
|
-
| GET | `/sessions/native-only/summary` | **Why?** on the untracked-session notice: counts only, no query parameters (400 otherwise)
|
|
775
|
-
| POST | `/sessions/native-only/end` | **End these sessions**: empty body; signed-in administrators only (admin API tokens get 403); 5 per minute
|
|
776
|
-
| GET | `/sessions/analytics` | Analytics page: counts and grouped counts over every session, cached 30 seconds
|
|
777
|
-
| GET | `/sessions/export` | Export batches of up to 1,000 rows, newest first; follow `meta.nextCursor`
|
|
778
|
-
| GET | `/user/:userId/sessions` | Sessions panel
|
|
779
|
-
| POST | `/sessions/:sessionId/terminate` | **End session** (reason `manual`; in refresh mode the Strapi session is revoked first; the record stays)
|
|
780
|
-
| DELETE | `/sessions/:sessionId` | **Delete record** (record removed, token stays revoked; an open session also ends)
|
|
781
|
-
| POST | `/sessions/clean-inactive` | **Delete ended sessions** (all users; open and idle sessions are not affected; does not run the idle check)
|
|
782
|
-
| POST | `/user/:userId/terminate-all` | **End all sessions** (reason `manual`)
|
|
783
|
-
| POST | `/user/:userId/toggle-block` | **Block user** / **Unblock user**
|
|
784
|
-
| GET | `/users/stats` | Widget totals (`totalUsers`, `blockedUsers`)
|
|
785
|
-
| GET | `/geolocation/:ipAddress` | **Look up location**
|
|
786
|
-
| GET | `/geoip/status` | GeoIP database status, plus `risk` (`available`, `source`, and per risk database `editionId`, `exists`, `usable`, `fromEnvironment`, `metadata`)
|
|
787
|
-
| PUT | `/geoip/credentials` | Save or remove (`{ "clear": true }`) MaxMind credentials
|
|
788
|
-
| POST | `/geoip/update` | Update database / Force download. Body `{ "force"?: boolean, "database"?: "location" \| "anonymous-ip" \| "asn" }` (default `location`; anything else is 400). A 401/403 from MaxMind answers 502 "MaxMind refused the download…"
|
|
789
|
-
| GET, PUT | `/settings` | Configuration (PUT validates every field and returns `error.details.errors` on invalid input). Webhook URLs are never returned: `hasDiscordWebhook`, `hasSlackWebhook` and a hint (`https://discord.com/…`); see below
|
|
790
|
-
| POST | `/sessions/:sessionId/simulate-timeout` | Development only; removed when `NODE_ENV` is `production` or `staging`
|
|
791
|
-
| GET | `/admin-sessions/admins` | Admin panel view: `?page=&pageSize=` (1-100), `search` (up to 100 characters, name or email; the admin id only without `admin::users.read`), `filter` (`all`, `signed-in`, `not-signed-in`); needs `admin-sessions.read`
|
|
792
|
-
| GET | `/admin-sessions/admins/:adminId/sessions` | **View sessions**: one entry per signed-in browser; needs `admin-sessions.read`
|
|
793
|
-
| POST | `/admin-sessions/admins/:adminId/sessions/:sessionId/sign-out` | **Sign out** one browser; needs `admin-sessions.revoke`; signed-in administrators only; 10 per minute
|
|
794
|
-
| POST | `/admin-sessions/admins/:adminId/sign-out-everywhere` | **Sign out everywhere**; needs `admin-sessions.revoke`; signed-in administrators only; 10 per minute
|
|
795
|
-
| GET | `/admin-activity/sign-ins` | **Sign-in history**, **Recent security activity** and the **Security activity** page: `adminId`, `event` (`all`, `succeeded`, `failed`, `signed-out`, `changes`), `from`, `to` (ISO dates), `page`, `pageSize` (1-100); needs `admin-activity.read`
|
|
796
|
-
| GET | `/admin-activity/sign-ins/export` | CSV export batches of 500 rows, newest first; same filters plus `cursor`; follow `meta.nextCursor`
|
|
797
|
-
| GET | `/admin-activity/content` | **Activity**: `adminId`, `action` (`all`, `view`, `create`, `update`, `publish`, `unpublish`, `discard`, `delete`, `clone`), `contentType` (uid), `from`, `to`, `page`, `pageSize`; needs `admin-activity.read`
|
|
798
|
-
| GET | `/admin-activity/content/export` | CSV export batches of 500 rows; same filters plus `cursor`
|
|
799
|
-
| GET | `/lockouts` | **Locked now**: `{ data: [{ id, kind: 'ip' \| 'account', ip, user, failures, lockedAt, until }] }`; read rate limit
|
|
800
|
-
| POST | `/lockouts/unlock` | **Unlock**: body `{ id }` from the list; needs `lockouts.unlock`; 404 when the lock already ended; 10 per minute
|
|
801
|
-
| GET | `/roles` | Users & Permissions roles (without Public) for **Different rules for some roles**
|
|
771
|
+
**Protected settings (4.17).** `PUT /settings` still needs only `access`, so roles that change the session, login-protection, alert-email and retention options keep working. Changing a protected key needs **Change protected settings** as well, else 403 with `error.details.reason: "settings-update-permission"`: `enableGeolocation`, `geoIpProvider`, `geoLookupFailureMode`, `geoIpDatabasePath`, `enableWebhooks`, `discordWebhookUrl`, `slackWebhookUrl`, every security log key (those also keep needing **View admin activity**, reason `admin-activity-permission`) and the sign-in and session policy keys (`maxFailedLoginsPerAccount`, `lockoutWindowMinutes`, `lockoutDurationMinutes`, `lockoutTrustedAddresses`, `lockoutNotifyUser`, `recordUserSignInEvents`, `maxSessionsPerUser`, `sessionLimitPolicy`, `endOtherSessionsOnPasswordChange`, `roleRules`), and the detection and integration keys (`impossibleTravelEnabled`, `impossibleTravelSpeedKmh`, `impossibleTravelMinDistanceKm`, `impossibleTravelAction`, `webhookEvents`, `genericWebhookEnabled`, `genericWebhookUrl`, `genericWebhookSecret`, `sessionIpAnonymize`), and `impersonationEnabled` (4.20). The new-device and impossible-travel email switches stay with `access`, like the other alert emails. Sending a protected key back with its stored value is not a change, so these roles can still save the whole form. The admin UI shows these controls read-only for them.
|
|
772
|
+
|
|
773
|
+
| Method | Path | Admin UI action |
|
|
774
|
+
| -------- | -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
775
|
+
| GET | `/sessions` | Sessions dashboard: `?page=&pageSize=` (1-100), `status`, `reason`, `search`, `sort`; see below |
|
|
776
|
+
| GET | `/sessions/active` | Active sessions only; same paging parameters |
|
|
777
|
+
| GET | `/sessions/stats` | Dashboard cards and widget: counts only, cached 5 seconds per process |
|
|
778
|
+
| GET | `/sessions/native-only/summary` | **Why?** on the untracked-session notice: counts only, no query parameters (400 otherwise) |
|
|
779
|
+
| POST | `/sessions/native-only/end` | **End these sessions**: empty body; signed-in administrators only (admin API tokens get 403); 5 per minute |
|
|
780
|
+
| GET | `/sessions/analytics` | Analytics page: counts and grouped counts over every session, cached 30 seconds |
|
|
781
|
+
| GET | `/sessions/export` | Export batches of up to 1,000 rows, newest first; follow `meta.nextCursor` |
|
|
782
|
+
| GET | `/user/:userId/sessions` | Sessions panel |
|
|
783
|
+
| POST | `/sessions/:sessionId/terminate` | **End session** (reason `manual`; in refresh mode the Strapi session is revoked first; the record stays) |
|
|
784
|
+
| DELETE | `/sessions/:sessionId` | **Delete record** (record removed, token stays revoked; an open session also ends) |
|
|
785
|
+
| POST | `/sessions/clean-inactive` | **Delete ended sessions** (all users; open and idle sessions are not affected; does not run the idle check) |
|
|
786
|
+
| POST | `/user/:userId/terminate-all` | **End all sessions** (reason `manual`) |
|
|
787
|
+
| POST | `/user/:userId/toggle-block` | **Block user** / **Unblock user** |
|
|
788
|
+
| GET | `/users/stats` | Widget totals (`totalUsers`, `blockedUsers`) |
|
|
789
|
+
| GET | `/geolocation/:ipAddress` | **Look up location** |
|
|
790
|
+
| GET | `/geoip/status` | GeoIP database status, plus `risk` (`available`, `source`, and per risk database `editionId`, `exists`, `usable`, `fromEnvironment`, `metadata`) |
|
|
791
|
+
| PUT | `/geoip/credentials` | Save or remove (`{ "clear": true }`) MaxMind credentials |
|
|
792
|
+
| POST | `/geoip/update` | Update database / Force download. Body `{ "force"?: boolean, "database"?: "location" \| "anonymous-ip" \| "asn" }` (default `location`; anything else is 400). A 401/403 from MaxMind answers 502 "MaxMind refused the download…" |
|
|
793
|
+
| GET, PUT | `/settings` | Configuration (PUT validates every field and returns `error.details.errors` on invalid input). Webhook URLs are never returned: `hasDiscordWebhook`, `hasSlackWebhook` and a hint (`https://discord.com/…`); see below |
|
|
794
|
+
| POST | `/sessions/:sessionId/simulate-timeout` | Development only; removed when `NODE_ENV` is `production` or `staging` |
|
|
795
|
+
| GET | `/admin-sessions/admins` | Admin panel view: `?page=&pageSize=` (1-100), `search` (up to 100 characters, name or email; the admin id only without `admin::users.read`), `filter` (`all`, `signed-in`, `not-signed-in`); needs `admin-sessions.read` |
|
|
796
|
+
| GET | `/admin-sessions/admins/:adminId/sessions` | **View sessions**: one entry per signed-in browser; needs `admin-sessions.read` |
|
|
797
|
+
| POST | `/admin-sessions/admins/:adminId/sessions/:sessionId/sign-out` | **Sign out** one browser; needs `admin-sessions.revoke`; signed-in administrators only; 10 per minute |
|
|
798
|
+
| POST | `/admin-sessions/admins/:adminId/sign-out-everywhere` | **Sign out everywhere**; needs `admin-sessions.revoke`; signed-in administrators only; 10 per minute |
|
|
799
|
+
| GET | `/admin-activity/sign-ins` | **Sign-in history**, **Recent security activity** and the **Security activity** page: `adminId`, `event` (`all`, `succeeded`, `failed`, `signed-out`, `changes`), `from`, `to` (ISO dates), `page`, `pageSize` (1-100); needs `admin-activity.read` |
|
|
800
|
+
| GET | `/admin-activity/sign-ins/export` | CSV export batches of 500 rows, newest first; same filters plus `cursor`; follow `meta.nextCursor` |
|
|
801
|
+
| GET | `/admin-activity/content` | **Activity**: `adminId`, `action` (`all`, `view`, `create`, `update`, `publish`, `unpublish`, `discard`, `delete`, `clone`), `contentType` (uid), `from`, `to`, `page`, `pageSize`; needs `admin-activity.read` |
|
|
802
|
+
| GET | `/admin-activity/content/export` | CSV export batches of 500 rows; same filters plus `cursor` |
|
|
803
|
+
| GET | `/lockouts` | **Locked now**: `{ data: [{ id, kind: 'ip' \| 'account', ip, user, failures, lockedAt, until }] }`; read rate limit |
|
|
804
|
+
| POST | `/lockouts/unlock` | **Unlock**: body `{ id }` from the list; needs `lockouts.unlock`; 404 when the lock already ended; 10 per minute |
|
|
805
|
+
| GET | `/roles` | Users & Permissions roles (without Public) for **Different rules for some roles** |
|
|
806
|
+
| GET | `/impersonation/status` | `{ data: { enabled, handoff: 'frontend' \| 'token', frontendOrigin, durations, mode } }` |
|
|
807
|
+
| POST | `/impersonation/users/:userId` | **Start impersonation**: body `{ reason, durationMinutes: 15 \| 30 \| 60, notifyUser? }`; needs `impersonate.users`; signed-in admins only; 201 `{ data: { impersonation, handoff } }` (`Cache-Control: no-store`); 10 per 10 minutes |
|
|
808
|
+
| POST | `/impersonation/admins/:adminId/preview` | **View as**: body `{ reason, durationMinutes: 15 \| 30 }`; needs `impersonate.admins`; signed-in admins only; 201 `{ data: { impersonation, preview: { admin, contentTypes, otherPermissions } } }`; 403 `self`, `super-admin`, `not-subset`; 10 per 10 minutes |
|
|
809
|
+
| GET | `/impersonation/previews/:id` | The running preview, for the admin who started it; 404 otherwise or once it ended |
|
|
810
|
+
| GET | `/impersonation/active` | **Active impersonations**: `{ data: [{ id, targetType, targetId, targetLabel, actorId, actorLabel, startedByYou, reason, durationMinutes, handoff, credentialIssued, startedAt, expiresAt, state }] }`; app users with `impersonate.users`, admin previews with `impersonate.admins` |
|
|
811
|
+
| POST | `/impersonation/:id/end` | **End impersonation**: `{ data: { ended } }`; needs the impersonate permission of its kind; 404 for unknown ids |
|
|
802
812
|
|
|
803
813
|
**Session list parameters.** `page` (from 1), `pageSize` (1-100), `status` (`all`, `open`, `active`, `idle`, `ended`), `reason` (with `status=ended`: `logout`, `idle`, `expired`, `manual`, `blocked`, `unrecorded`), `search` (up to 100 characters; matches email, username, IP address, browser, operating system and device type) and `sort` (`loginTime:desc`, `loginTime:asc`, `lastActive:desc`, `lastActive:asc`). The response is `{ data, meta: { pagination: { page, pageSize, total, pageCount } } }` with exact totals. Unknown or out-of-range parameters return 400. Pages that start after the first 50,000 matching sessions return 400; narrow the filter or use the export, which walks every row with a cursor. Without `page` and `pageSize`, `GET /sessions` keeps the 4.x response (latest 1,000 rows, `meta.truncated`) for existing scripts.
|
|
804
814
|
|
|
@@ -896,6 +906,148 @@ Measured with `scripts/bench-admin-activity.cjs` (Strapi 5.63, SQLite, Node 22,
|
|
|
896
906
|
|
|
897
907
|
The difference is within the run-to-run noise: recording adds no measurable latency, because the request only pushes an object onto the queue.
|
|
898
908
|
|
|
909
|
+
## Impersonation
|
|
910
|
+
|
|
911
|
+
Support staff sometimes need to see the app exactly as a user sees it. Since 4.20 an admin can act as a Users & Permissions user for a limited time, with a reason that is recorded. Off by default.
|
|
912
|
+
|
|
913
|
+
**Turn it on.** Settings › Session Manager › **Impersonation** › **Allow impersonation** (a protected setting: needs **Change protected settings**). Then grant **Impersonate app users** (`plugin::magic-sessionmanager.impersonate.users`) to the roles that may use it under Settings › Administration Panel › Roles › Plugins › Session Manager › Impersonation. The Super Admin role holds it automatically, like every plugin permission; other roles get 403 until it is granted. Turning the switch off ends every running impersonation at once.
|
|
914
|
+
|
|
915
|
+
**Start one.** Open the user in the Content Manager. The Sessions panel shows **Impersonate…** (only with the permission and the switch on). Enter a reason (3 to 255 characters; stored in the security log), choose 15, 30 or 60 minutes (default 15) and, if you like, **Email the user that their account was opened** (through Strapi's email plugin, with the reason and the duration; no admin name). Blocked users cannot be impersonated, and one user has at most one running impersonation.
|
|
916
|
+
|
|
917
|
+
**What you get.** A short-lived credential for that user and nothing else; the password is never read, shown or changed.
|
|
918
|
+
|
|
919
|
+
- `jwtManagement: 'refresh'`: a Strapi session created with `strapi.sessionManager('users-permissions').generateRefreshToken(userId, deviceId, { type: 'session', metadata })` on its own device id, marked in the session metadata (Strapi keeps the metadata when the refresh token rotates), plus an access token. `POST /api/auth/refresh` keeps working until the end; at the end the plugin deletes the session (`invalidateRefreshToken(userId, deviceId)`), so access and refresh tokens stop at once.
|
|
920
|
+
- `legacy-support`: a JWT with an `msmImp` claim whose `exp` is the end of the impersonation. Ending it puts the token on the plugin's revocation list.
|
|
921
|
+
- Either way the user's session list shows a Magic session row for it, and the plugin's own session checks apply.
|
|
922
|
+
|
|
923
|
+
**Frontend hand-off (recommended).** Configure where the frontend accepts it:
|
|
924
|
+
|
|
925
|
+
```js
|
|
926
|
+
// config/plugins.js
|
|
927
|
+
'magic-sessionmanager': {
|
|
928
|
+
config: {
|
|
929
|
+
impersonation: {
|
|
930
|
+
frontendUrl: 'https://app.example.com/impersonate',
|
|
931
|
+
allowedFrontendOrigins: ['https://app.example.com'], // optional allow-list; default: the URL's origin
|
|
932
|
+
},
|
|
933
|
+
},
|
|
934
|
+
},
|
|
935
|
+
```
|
|
936
|
+
|
|
937
|
+
`frontendUrl` must be https (plain http only for `localhost` outside production), without user info, query or fragment, and its origin must be on `allowedFrontendOrigins`; otherwise Strapi refuses to start with a message naming the key. Admins cannot change it in the UI. After **Start impersonation** the dialog shows **Open frontend**: the admin panel sends a one-time code to `frontendUrl` with an HTTP **POST** form in a new tab (field `code`), so the code never appears in a URL, the browser history, a `Referer` header or an access log. The frontend's server exchanges it within **60 seconds**:
|
|
938
|
+
|
|
939
|
+
```js
|
|
940
|
+
// Next.js route handler (app/impersonate/route.js), as an example
|
|
941
|
+
export async function POST(request) {
|
|
942
|
+
const form = await request.formData();
|
|
943
|
+
const response = await fetch(
|
|
944
|
+
`${process.env.STRAPI_URL}/api/magic-sessionmanager/impersonation/exchange`,
|
|
945
|
+
{
|
|
946
|
+
method: 'POST',
|
|
947
|
+
headers: { 'Content-Type': 'application/json' },
|
|
948
|
+
body: JSON.stringify({ code: form.get('code') }),
|
|
949
|
+
}
|
|
950
|
+
);
|
|
951
|
+
if (!response.ok) return new Response('This link has expired.', { status: 400 });
|
|
952
|
+
const { data } = await response.json(); // { jwt, refreshToken?, expiresAt, user, impersonation }
|
|
953
|
+
// Store the credential the way your app stores a normal sign-in (for example an httpOnly cookie
|
|
954
|
+
// that expires at data.expiresAt), then redirect to the app.
|
|
955
|
+
}
|
|
956
|
+
```
|
|
957
|
+
|
|
958
|
+
Strapi's default Content-Security-Policy for the admin panel only lets forms post to Strapi itself (`form-action 'self'`), so allow the frontend origin, and only that one:
|
|
959
|
+
|
|
960
|
+
```js
|
|
961
|
+
// config/middlewares.js
|
|
962
|
+
{
|
|
963
|
+
name: 'strapi::security',
|
|
964
|
+
config: {
|
|
965
|
+
contentSecurityPolicy: {
|
|
966
|
+
useDefaults: true,
|
|
967
|
+
directives: { 'form-action': ["'self'", 'https://app.example.com'] },
|
|
968
|
+
},
|
|
969
|
+
},
|
|
970
|
+
},
|
|
971
|
+
```
|
|
972
|
+
|
|
973
|
+
Strapi logs a warning at start-up while `frontendUrl` is set but its origin is missing from `form-action`, and the dialog explains the block when the browser reports it.
|
|
974
|
+
|
|
975
|
+
The code is 32 random bytes, stored only as a SHA-256 hash, valid for 60 seconds and usable once (an atomic update, so two parallel exchanges give one credential). Every unknown, used, expired or malformed code gets the same `400 Invalid or expired code`. The exchange route is public on purpose (the code is the credential) and limited to 10 requests per minute per IP address. Because the frontend accepts a cross-site POST, only start a session from it after a successful exchange, and never on GET.
|
|
976
|
+
|
|
977
|
+
**Without `frontendUrl`** the dialog shows the access token (and, in refresh mode, the refresh token) once, read-only, with a copy button and a warning. Use it in a private browser window or an API client and do not store it.
|
|
978
|
+
|
|
979
|
+
**What an impersonation cannot do.** A global middleware recognises impersonation credentials (the claim or the session marker; Strapi checks the signature afterwards, so a forged token can only add restrictions) and refuses with 403, `error.details.reason` `impersonation-credentials`, `impersonation-account` or `impersonation-sessions`:
|
|
980
|
+
|
|
981
|
+
- every `/api/auth/*` route except `POST /api/auth/refresh` and `GET /api/auth/sessions`: password change, reset and forgot-password, email confirmation, sign-in, registration, provider sign-in, logout and ending sessions; also `/api/connect/*`;
|
|
982
|
+
- `POST`, `PUT` and `DELETE` on `/api/users` and `/api/users/:id` (email, password and account changes, account deletion);
|
|
983
|
+
- the plugin's own routes except the three reads (`/my-sessions`, `/current-session`, `/user/:userId/sessions`): logout, ending own sessions, the data export `GET /my-data`, "This wasn't me" links and the exchange itself (no nesting);
|
|
984
|
+
- Magic Link and passwordless sign-in routes, and GraphQL mutations that sign in, register or change the password or the user (`login`, `register`, `changePassword`, `updateUsersPermissionsUser`, …).
|
|
985
|
+
|
|
986
|
+
Everything else of your API works as for the user. An ended or expired impersonation gets 401 with `impersonation-ended` or `impersonation-expired`.
|
|
987
|
+
|
|
988
|
+
**Show a banner in your frontend.** Every response to an impersonation request carries `X-Magic-Impersonation: true`. Browsers let cross-origin JavaScript read it only when CORS exposes it:
|
|
989
|
+
|
|
990
|
+
```js
|
|
991
|
+
// config/middlewares.js
|
|
992
|
+
{ name: 'strapi::cors', config: { expose: ['X-Magic-Impersonation', 'X-Session-Terminated-Reason'] } },
|
|
993
|
+
```
|
|
994
|
+
|
|
995
|
+
```js
|
|
996
|
+
// A small fetch wrapper
|
|
997
|
+
export async function api(path, init) {
|
|
998
|
+
const response = await fetch(`${STRAPI_URL}${path}`, init);
|
|
999
|
+
const impersonating = response.headers.get('X-Magic-Impersonation') === 'true';
|
|
1000
|
+
document.body.toggleAttribute('data-impersonating', impersonating);
|
|
1001
|
+
return response;
|
|
1002
|
+
}
|
|
1003
|
+
```
|
|
1004
|
+
|
|
1005
|
+
```css
|
|
1006
|
+
body[data-impersonating]::before {
|
|
1007
|
+
content: 'Support is signed in as this user. Changes are recorded.';
|
|
1008
|
+
position: sticky;
|
|
1009
|
+
top: 0;
|
|
1010
|
+
display: block;
|
|
1011
|
+
padding: 8px 16px;
|
|
1012
|
+
background: #fdf4dc;
|
|
1013
|
+
color: #3d2e00;
|
|
1014
|
+
font: 14px/1.4 system-ui;
|
|
1015
|
+
z-index: 1000;
|
|
1016
|
+
}
|
|
1017
|
+
```
|
|
1018
|
+
|
|
1019
|
+
**Ending.** An impersonation ends by itself at its time (checked on every request and by a sweep every 30 seconds), with **End impersonation** in the dialog or in the user's Sessions panel, in **Settings › Impersonation › Active impersonations** (who, started by, reason, end time), or for all of them when the switch is turned off. Admins with **Impersonate app users** see and can end every running impersonation of an app user.
|
|
1020
|
+
|
|
1021
|
+
**Security log.** `impersonation.started` (actor: the real admin; target: the user; `meta`: reason, duration, hand-off, whether the user was emailed), `impersonation.ended` (actor: the admin who ended it, `meta.startedBy`), `impersonation.expired` (actor: system) and `impersonation.refused` (`meta.refusal`: `disabled`, `blocked`, `already-active`, `api-token`, or `call-credentials` / `call-account` / `call-sessions` for a refused request, at most one per minute and reason). No code, token or hash is ever logged. The events stay when the admin's account is deleted (the actor reference is cleared) and are deleted with the user. Rows of the impersonation table (`magic_sessions_impersonations`) are deleted 7 days after the impersonation ended.
|
|
1022
|
+
|
|
1023
|
+
**Limits.** 10 starts per admin per 10 minutes; 10 code exchanges per minute per IP address. Admin API tokens cannot impersonate (403 `api-token`); only a signed-in admin can.
|
|
1024
|
+
|
|
1025
|
+
**Security model.**
|
|
1026
|
+
|
|
1027
|
+
- Who: only roles granted **Impersonate app users**, only while the switch (a protected setting) is on, only signed-in admins.
|
|
1028
|
+
- What: a credential of the user's own permissions, never more; credential, account and session changes are refused.
|
|
1029
|
+
- How long: at most 60 minutes, enforced server-side; codes 60 seconds and single use.
|
|
1030
|
+
- Accountability: reason, duration, actor and target in the security log; optional email to the user.
|
|
1031
|
+
- Not covered: requests your own routes make on the user's behalf are not restricted unless they match the list above; review custom routes that change credentials or emails. Admins of the admin panel cannot be impersonated; see [View as admin](#view-as-admin-read-only-permission-preview).
|
|
1032
|
+
|
|
1033
|
+
### View as admin (read-only permission preview)
|
|
1034
|
+
|
|
1035
|
+
**What it does.** In Session Manager › Admin panel, the row action **View as** (the person icon next to **View sessions** and **Sign out everywhere**; on narrow screens a **View as** button) opens a dialog that asks for a reason and a duration (15 or 30 minutes) and then shows which content types that admin can open and with which actions (Create, Read, Update, Delete, Publish; "restricted" when fields, locales or conditions limit them), their roles and their other permissions, computed on the server from their role permissions with Strapi's permission service. A banner on top reads "You are viewing as … · read-only · ends in mm:ss · End". Nobody is signed in and nothing can be changed: the preview creates no session and no token, so read-only holds by construction. Closing the dialog, **End**, the end of the duration or turning the switch off ends it; it also shows in **Active impersonations** while it runs. Needs **View as admin (read-only permission preview)** (`plugin::magic-sessionmanager.impersonate.admins`) and the **Allow impersonation** switch.
|
|
1036
|
+
|
|
1037
|
+
**Anti-escalation (server-side).** Refused with 403 and `details.reason`:
|
|
1038
|
+
|
|
1039
|
+
- `self`: nobody views themselves;
|
|
1040
|
+
- `super-admin`: nobody views a Super Admin, Super Admins included;
|
|
1041
|
+
- `not-subset`: a non-Super-Admin views only an admin whose every effective permission they hold themselves (`details.uncovered` counts the others). The comparison follows Strapi's own permission ceiling rules: conditions are OR-ed, so a conditional permission does not cover an unconditional one; a property the holder does not restrict covers every value; a parent field covers its nested fields; unregistered conditions and, on localized types, missing locales are read the way the engine enforces them. A test compares it with Strapi 5.63's `isPermissionWithinCeiling` on more than 20,000 permission pairs;
|
|
1042
|
+
- `api-token`: admin API tokens cannot start one;
|
|
1043
|
+
- nesting is impossible: a preview creates no credential, and an app-user impersonation token cannot reach admin routes (401).
|
|
1044
|
+
|
|
1045
|
+
The preview is visible only to the admin who started it. Admin names in it and in the list need Strapi's **Read** permission on Users (`admin::users.read`), as in the Admin panel view.
|
|
1046
|
+
|
|
1047
|
+
**Why not a real admin session.** Strapi 5.63 has no impersonation in its admin, core, Users & Permissions or Content Manager packages, and no documented way for a plugin to sign a browser in as another admin. The server side would be possible (`strapi.sessionManager('admin').generateRefreshToken(adminId, deviceId, { metadata })`, and a global middleware could refuse every non-GET request of such a session). But the admin panel keeps its access token in internal storage (`localStorage.jwtToken` or a cookie whose name is built into the bundle) that no public admin API can set (`useAuth` only offers `login` with credentials), every open tab adopts a changed token, the admin panel has no global injection zone for a banner on every page (`admin.injectionZones` is empty and the plugin `initializer` unmounts once plugins are ready), and Strapi's `POST /admin/logout` without a device id deletes every session of the signed-in admin, which in an impersonated tab would be the other admin's sessions. Building on those internals could break with any Strapi update and could sign the real admin out or act with the wrong identity, so the plugin offers the honest preview instead. Content Manager activity is therefore never attributed to an impersonation (`meta.impersonatedBy` does not occur): a preview cannot do anything.
|
|
1048
|
+
|
|
1049
|
+
**Works councils and GDPR (information, not legal advice).** Acting as a user processes that user's personal data. A typical basis is a legitimate interest in support and in fixing faults (Art. 6(1)(f) GDPR) or the contract with the user; tell users in your privacy information (Art. 13) and consider turning on the email notice. The security log shows which admin did what and when; in Germany a technical system that can monitor employees' behaviour or performance is subject to the works council's co-determination (Section 87(1) no. 6 BetrVG), and comparable rules exist elsewhere. Agree the feature with the works council where there is one before you turn it on, keep the circle of roles small, and check whether a data protection impact assessment (Art. 35 GDPR) is needed.
|
|
1050
|
+
|
|
899
1051
|
## Running several instances (Railway replicas, pm2 cluster)
|
|
900
1052
|
|
|
901
1053
|
The plugin works with several Strapi processes that share one database, for example 2 Railway replicas with 4 pm2 cluster workers each (8 processes). No sticky sessions are needed (Railway does not offer them) and no extra infrastructure: the database is the single source of truth.
|
|
@@ -1084,6 +1236,7 @@ The plugin sits in the request path of every authenticated Content API call, so
|
|
|
1084
1236
|
- **Reporting a vulnerability.** Please do not post exploit details in a public issue. Open an issue that asks for a private contact, or use the email address on the maintainer's GitHub profile, and you will get a reply before anything is published.
|
|
1085
1237
|
- **Secrets.** MaxMind license keys are never returned to the browser. Webhook URLs grant posting rights to your channel; treat them as secrets. Exports never contain tokens.
|
|
1086
1238
|
- **Admin panel sessions.** The Admin panel view reads Strapi's own `admin::session` records (origin `admin`). Only Super Admin can see or sign out admins until another role is granted `admin-sessions.read` / `admin-sessions.revoke`; a delegated role cannot sign out a Super Admin. Sign-outs need a signed-in administrator (not an admin API token), are rate limited and logged with admin ids and counts only.
|
|
1239
|
+
- **Impersonation.** Off by default; only roles with **Impersonate app users**, only signed-in admins, at most 60 minutes, credential and account changes refused, every start, end, expiry and refusal in the security log. Admins are never impersonated; **View as** shows a read-only permission preview with anti-escalation rules. Details: [Impersonation](#impersonation).
|
|
1087
1240
|
- **Admin activity and sign-in history.** The plugin's security log stores admin sign-ins with IP address and user agent (on by default; IP anonymisation and retention configurable) and, only when you turn it on, Content Manager activity. Only Super Admin sees it until another role gets `admin-activity.read`. Typed emails of failed sign-ins, passwords and request bodies are never stored. Details and legal notes: [Admin activity and sign-in history](#admin-activity-and-sign-in-history).
|
|
1088
1241
|
|
|
1089
1242
|
---
|
|
@@ -1102,6 +1255,7 @@ Information for your records of processing, a data protection impact assessment
|
|
|
1102
1255
|
| Lock counters | During the counting window and the lock | `magic_sm_counters` (SHA-256 hashes of IP and identifier) | Until the lock ends | Nobody (hashes) | Lockout thresholds; 0 turns a lock off |
|
|
1103
1256
|
| "Locked now" entries | While a lock lasts | `magic_sm_cache` | Until the lock ends | Admins with plugin access | Follows the log's IP options |
|
|
1104
1257
|
| Admin sign-ins and, opt-in, Content Manager activity | See [Admin activity](#admin-activity-and-sign-in-history) | Security log | `securityLogRetentionDays` | Admins with **View admin activity** | **Record admin sign-ins** (on), **Record Content Manager activity** (off) |
|
|
1258
|
+
| Impersonations: admin, user, reason, duration, start and end; refused starts and refused requests | When an admin impersonates a user | `magic_sessions_impersonations` and the security log | Table: 7 days after the end; log: `securityLogRetentionDays` | Admins with **Impersonate app users** (list), **View admin activity** (log) | **Allow impersonation** (off) |
|
|
1105
1259
|
|
|
1106
1260
|
What leaves the server, only when you turn it on: security emails through Strapi's email provider; Discord, Slack and the signed webhook with the selected events (user documentId, IP as the log stores it, browser, country, city, event details; never email addresses or passwords); IP lookups at ipapi.co only with the `auto`/`ipapi` provider. No telemetry.
|
|
1107
1261
|
|
|
@@ -9,7 +9,7 @@ const styled = require("styled-components");
|
|
|
9
9
|
const designSystem = require("@strapi/design-system");
|
|
10
10
|
const icons = require("@strapi/icons");
|
|
11
11
|
const symbols = require("@strapi/icons/symbols");
|
|
12
|
-
const index = require("./index-
|
|
12
|
+
const index = require("./index-Ceh3Q1Ki.js");
|
|
13
13
|
const SectionCard = require("./SectionCard-BlWv8CRt.js");
|
|
14
14
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
15
15
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
@@ -7,7 +7,7 @@ import styled from "styled-components";
|
|
|
7
7
|
import { Typography, Flex, LinkButton, Button, EmptyStateLayout, VisuallyHidden } from "@strapi/design-system";
|
|
8
8
|
import { ArrowClockwise, ChartBubble, User, Clock, Calendar } from "@strapi/icons";
|
|
9
9
|
import { EmptyDocuments } from "@strapi/icons/symbols";
|
|
10
|
-
import {
|
|
10
|
+
import { W as normalizeDeviceType, u as useSessionFormatters, f as pluginId, n as isCancelledRequest, l as logSafeAdminError, h as PersistentAlert, R as ReadableText, q as PageShell, r as StatGrid, s as StatCard, H as EqualGrid, b as getTranslation, X as getDeviceTypeMessage } from "./index-meLDPPwt.mjs";
|
|
11
11
|
import { S as SectionCard } from "./SectionCard-D51bv4Hi.mjs";
|
|
12
12
|
const ANALYTICS_UNKNOWN_KEY = "unknown";
|
|
13
13
|
const VERSION_TOKEN = /^v?\d[\w.]*$/i;
|