strapi-plugin-magic-sessionmanager 4.18.0 → 4.19.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 +24 -0
- package/README.md +37 -35
- package/dist/admin/{Analytics-C8fV6LDV.js → Analytics-AzG-hPvn.js} +1 -1
- package/dist/admin/{Analytics-CBspdl1I.mjs → Analytics-DSXe9BPn.mjs} +1 -1
- package/dist/admin/{App-PLwqaRSQ.mjs → App-7UDfLwMK.mjs} +1132 -163
- package/dist/admin/{App-D92MTQmn.js → App-D08oGxy4.js} +1129 -160
- package/dist/admin/{OnlineUsersWidget-CiKapC1B.js → OnlineUsersWidget-CK0_o7Jk.js} +1 -1
- package/dist/admin/{OnlineUsersWidget-CwfBJdIX.mjs → OnlineUsersWidget-DIhJZ77w.mjs} +1 -1
- package/dist/admin/{Settings-CMgL-Aub.mjs → Settings-CneNJppG.mjs} +2 -2
- package/dist/admin/{Settings-Duil_4jv.js → Settings-DnNBDP1I.js} +2 -2
- package/dist/admin/{dashboardModel-sksvIc1c.js → dashboardModel-CjU0V7Sx.js} +1 -1
- package/dist/admin/{dashboardModel-BhUonEqc.mjs → dashboardModel-OyQ_39aF.mjs} +1 -1
- package/dist/admin/{de-CnInuvMY.js → de-CJZtJdhC.js} +65 -4
- package/dist/admin/{de-D2BqfY1f.mjs → de-DvYUwhjB.mjs} +65 -4
- package/dist/admin/{en-BPy208we.mjs → en-B8m9k-qd.mjs} +65 -4
- package/dist/admin/{en-KnmmYHTF.js → en-BZ2YkNIU.js} +65 -4
- package/dist/admin/{es-D1NGCAJK.js → es-BBsMtof1.js} +65 -4
- package/dist/admin/{es-B4VNeT0A.mjs → es-DBH36rrX.mjs} +65 -4
- package/dist/admin/{fr-AwhLN1BC.mjs → fr-CLvB1rGe.mjs} +65 -4
- package/dist/admin/{fr-D1KNyogi.js → fr-Cw6nc38j.js} +65 -4
- package/dist/admin/{index-BmnC2BPs.mjs → index-5Zb3GVml.mjs} +9 -9
- package/dist/admin/{index-Bnt0Jq6O.js → index-BSUrdxxt.js} +9 -9
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/{pt-D6m1TijL.mjs → pt-CVht14if.mjs} +65 -4
- package/dist/admin/{pt-EKThRXPY.js → pt-CjnMe7Z-.js} +65 -4
- package/dist/server/index.js +41 -8
- package/dist/server/index.mjs +41 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
# [4.19.0](https://github.com/Schero94/Magic-Sessionmanager/compare/v4.18.0...v4.19.0) (2026-11-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **admin:** show admin activity as tables with event details and a full-page view ([#39](https://github.com/Schero94/Magic-Sessionmanager/issues/39)) ([59d5e5a](https://github.com/Schero94/Magic-Sessionmanager/commit/59d5e5af40e6269d33ddf0f9e921dd440df83588))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Release type: minor (`feat(admin)`: the admin activity lists become tables with event details and a full-page view). No route, permission or request changes; the sign-in list response gains fields and the `event` filter gains `changes`.
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **Activity lists as tables.** "Recent sign-in activity", the **Sign-in history** tab and the **Activity** tab of the admin details dialog were narrow boxes that left most of the page empty, with the time sometimes on its own line and every badge in the same grey. They are now Strapi Design System tables across the full width: **Time** (relative, with date and time on a second line), **Event**, **Admin**, **IP address and device**, **Session** (Still signed in / Signed out, when and by whom), **Done by** and an eye button. Below about 800 px of list width (740 px in the details dialog) the same fields become stacked rows: badge and time on the first line, the admin on the second, the details on the third.
|
|
14
|
+
* **One colour per meaning**, as a badge and an icon (the DS dark theme draws every badge background in the same grey, so the icon carries the colour there too): green signed in, red sign-in failed or locked out, amber signed out by another admin, blue settings changed or log read with an API token, grey own sign-out and retention runs. Red badges use the `danger100` surface (5.4:1 in both themes; the DS danger variant measured 3.9:1 light and 2.6:1 dark).
|
|
15
|
+
* **Event details.** Selecting a row, or its eye button, opens the details of the event, like Strapi's own Audit Logs: the exact time with seconds, the full user agent, the event id, the address, place, browser and operating system, and for a sign-out by an admin who did it, from how many browsers and how many sessions ended. Focus returns to the row's eye button; Escape closes only the details when they are open on top of the admin dialog.
|
|
16
|
+
* **Security activity page** (`/plugins/magic-sessionmanager/admin-panel/activity`). The card under the admin table is now **Recent security activity** (the latest eight events) with **Show all**, which opens a full page with the same table, filters for event, period and one admin (**Show only events of …** in the details), Strapi's pagination and CSV export. Filters and page are in the URL. It needs the same permissions as the card (Read admin panel sessions and View admin activity).
|
|
17
|
+
* **4.17 events are shown.** Settings changes (`settings.updated`, with the changed key names), reads of the log with an admin API token (`security-log.read`) and retention runs (`security-log.retention.purged`, with the number of deleted events) appear on the Security activity page and in Recent security activity (filter **Settings and log access**, also part of **All events**). Counted failed sign-ins of unknown accounts show as one row with "12 attempts within 5 minutes".
|
|
18
|
+
* **Labels for the 4.17 and 4.18 events.** App-user events (failed and refused sign-ins, lockouts and their lifting, session limit, sign-out after a password change, new device, impossible travel, "This wasn’t me", personal data export) and future `impersonation.*` and `webhook.*` events have their own label, icon and colour in the event table. The admin lists of this view still return admin events only.
|
|
19
|
+
* **API.** `GET /admin-activity/sign-ins` rows also return `userAgent` (as stored, at most 256 characters; admin-only and behind View admin activity like the IP address), `sessionsEnded` (sign-outs by an admin), `session.endedBy` (`{ id, name }` of the admin who ended a sign-in's session, name empty without `admin::users.read`) and `change`, `read` and `purge` for the three log events. `event=changes` lists only those; `event=all` includes them unless `adminId` is set, so one admin's history is unchanged.
|
|
20
|
+
|
|
21
|
+
### Migration
|
|
22
|
+
|
|
23
|
+
* Nothing to do. Clients that compare the exact key set of sign-in rows see six new keys. A client that sends `event=all` without `adminId` now also gets the three log events; send `succeeded`, `failed` or `signed-out` to keep sign-in events only.
|
|
24
|
+
|
|
1
25
|
# [4.18.0](https://github.com/Schero94/Magic-Sessionmanager/compare/v4.17.0...v4.18.0) (2026-11-25)
|
|
2
26
|
|
|
3
27
|
|
package/README.md
CHANGED
|
@@ -205,7 +205,7 @@ Open **Session Manager** and switch to **Admin panel** (the switch below the tit
|
|
|
205
205
|
- **Sessions of an admin:** one entry per signed-in browser with Strapi's device label (for example "Chrome on macOS"), **This browser**, **Remember me**, Signed in, Last active and **Ends at the latest**. **Sign out** ends that browser, **Sign out everywhere** ends all of them, **Manage in Settings** opens the admin in Settings › Users.
|
|
206
206
|
- **Confirmation:** every sign-out asks first. Signing yourself out of the browser you are using shows a warning; you are then taken to the login page.
|
|
207
207
|
- **Protection:** an admin without the Super Admin role cannot sign out a Super Admin, so the last active Super Admin can never be signed out by someone else. The view explains this instead of showing a disabled button.
|
|
208
|
-
- **Sign-in history and activity** (roles with "View admin activity"): the details dialog gets three tabs, **Sessions**, **Sign-in history** and **Activity**. The history lists sign-ins with IP address, location, browser and operating system and whether that session is **Still signed in**, **Signed out** (and by whom) or **Session ended**, plus failed attempts with the reason, lockouts and sign-outs. **Activity** lists the entries the admin opened, created, edited, published, unpublished, discarded or deleted in the Content Manager, each with a link to the entry. Both tabs filter by event or action, content type and period, page with **Show more** and offer **Export CSV**.
|
|
208
|
+
- **Sign-in history and activity** (roles with "View admin activity"): the details dialog gets three tabs, **Sessions**, **Sign-in history** and **Activity**. The history lists sign-ins with IP address, location, browser and operating system and whether that session is **Still signed in**, **Signed out** (and by whom) or **Session ended**, plus failed attempts with the reason, lockouts and sign-outs. **Activity** lists the entries the admin opened, created, edited, published, unpublished, discarded or deleted in the Content Manager, each with a link to the entry. Both tabs filter by event or action, content type and period, page with **Show more** and offer **Export CSV**. Under the admin table, **Recent security activity** shows the latest eight events of all admins, including failed sign-ins with an unknown email ("Unknown account") and settings changes; **Show all** opens the **Security activity** page with filters (event, period, one admin), paging and CSV export. Every list is a table with the columns Time, Event, Admin, IP address and device, Session and Done by (stacked rows on narrow screens and in narrow dialogs). The event badge and its icon use one colour per meaning: green signed in, red failed or locked out, amber signed out by another admin, blue settings changed or log read with an API token, grey own sign-out and retention runs. Selecting a row, or its eye button, opens the event details with the exact time, the full user agent, the event id and, for a sign-out by an admin, who did it and how many sessions ended. See [Admin activity and sign-in history](#admin-activity-and-sign-in-history).
|
|
209
209
|
- "Last active" is the last time the browser renewed its access token (Strapi's own signal), not every click. Strapi's own session records hold no IP address; the IP addresses in the sign-in history come from the plugin's security log.
|
|
210
210
|
|
|
211
211
|
### Session details
|
|
@@ -758,7 +758,7 @@ The **Admin panel sessions** routes need two more permissions, which only the Su
|
|
|
758
758
|
| ---------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
759
759
|
| `plugin::magic-sessionmanager.admin-sessions.read` | Read admin panel sessions | The Admin panel view and its two GET routes |
|
|
760
760
|
| `plugin::magic-sessionmanager.admin-sessions.revoke` | Sign out admins | **Sign out** and **Sign out everywhere** (also needs read) |
|
|
761
|
-
| `plugin::magic-sessionmanager.admin-activity.read` | View admin activity | Sign-in history, Activity, Recent
|
|
761
|
+
| `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
762
|
| `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
763
|
| `plugin::magic-sessionmanager.lockouts.unlock` | Unlock locked sign-ins | **Unlock** in Login protection › Locked now (also needs `access`) |
|
|
764
764
|
|
|
@@ -766,39 +766,39 @@ The **Admin panel sessions** routes need two more permissions, which only the Su
|
|
|
766
766
|
|
|
767
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
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** and **
|
|
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**
|
|
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** |
|
|
802
802
|
|
|
803
803
|
**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
804
|
|
|
@@ -826,6 +826,8 @@ Since 4.15 the plugin keeps a **security log**: one table (`plugin::magic-sessio
|
|
|
826
826
|
| **Content Manager activity** | `admin.content.view` (opening an entry), `.create`, `.update`, `.publish`, `.unpublish`, `.discard`, `.delete`, `.clone`, with content type, document id and locale | **Off** |
|
|
827
827
|
| **Changes to the log itself** (4.17) | `settings.updated` (who changed which settings keys, never the values), `security-log.retention.purged` (how many events the daily job deleted), `security-log.read` (a read of the history with an admin API token, once per token and list per 5 minutes) | Always |
|
|
828
828
|
|
|
829
|
+
The changes to the log itself belong to no single admin's history: they are listed on the **Security activity** page (filter **Settings and log access**, also part of **All events**) and in **Recent security activity**, never in the Sign-in history tab of one admin.
|
|
830
|
+
|
|
829
831
|
**Entry titles (4.17).** The log stores no entry title or other content of an entry. The Activity list and its export look the title up when they are read, with the reader's own Content Manager permissions: the reader must be allowed to read the content type and its main field (field-level permissions and conditions such as "is creator" apply). Otherwise, and for deleted entries, the row shows the document id. Titles stored by 4.15 and 4.16 are removed once at start-up.
|
|
830
832
|
|
|
831
833
|
**Who can see it.** The new permission **View admin activity** (`plugin::magic-sessionmanager.admin-activity.read`, together with `access` and `admin-sessions.read`). Only the Super Admin role has it until you grant it in Settings › Administration Panel › Roles › Plugins › Session Manager › Admin panel. Changing the settings below needs it **and** **Change protected settings** (`settings.update`, 4.17); other admins can still save the Configuration page, but not change these values (403). Admin names in the history need `admin::users.read`, as in the Admin panel view.
|
|
@@ -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-BSUrdxxt.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 { K 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, z as EqualGrid, b as getTranslation, L as getDeviceTypeMessage } from "./index-
|
|
10
|
+
import { K 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, z as EqualGrid, b as getTranslation, L as getDeviceTypeMessage } from "./index-5Zb3GVml.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;
|