strapi-plugin-magic-sessionmanager 4.7.2 → 4.9.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 +98 -0
- package/README.md +380 -663
- package/dist/admin/Analytics-B6d-39Qh.js +420 -0
- package/dist/admin/Analytics-DxOWXHn8.mjs +418 -0
- package/dist/admin/App-ZsSGj7n8.mjs +1894 -0
- package/dist/admin/App-mRFV50K6.js +1896 -0
- package/dist/admin/License-BE6UQ_V3.mjs +443 -0
- package/dist/admin/License-DXt2oi6u.js +443 -0
- package/dist/admin/OnlineUsersWidget-CFvM3Vbp.js +273 -0
- package/dist/admin/OnlineUsersWidget-_tJ6aeWl.mjs +254 -0
- package/dist/admin/SectionCard-BlWv8CRt.js +54 -0
- package/dist/admin/SectionCard-D51bv4Hi.mjs +55 -0
- package/dist/admin/Settings-BUc12TP5.js +3570 -0
- package/dist/admin/Settings-dtW7cjTX.mjs +3568 -0
- package/dist/admin/de-BFKoGEVT.js +544 -0
- package/dist/admin/de-j0oZH9Pz.mjs +544 -0
- package/dist/admin/en-UY4Tb5tE.mjs +544 -0
- package/dist/admin/en-s7Ksdkcg.js +544 -0
- package/dist/admin/es-07OGMe_5.js +544 -0
- package/dist/admin/es-DGBcZwQy.mjs +544 -0
- package/dist/admin/fr-B6-DWhGO.mjs +544 -0
- package/dist/admin/fr-ETj_2UBY.js +544 -0
- package/dist/admin/index-C_SyRULc.mjs +1750 -0
- package/dist/admin/index-D4kEnXSp.js +1751 -0
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +2 -2
- package/dist/admin/maskSensitiveValue-BWcSjow7.js +9 -0
- package/dist/admin/maskSensitiveValue-lLRhN_S7.mjs +10 -0
- package/dist/admin/pt-C7PwrQtV.js +544 -0
- package/dist/admin/pt-YMRLm9gx.mjs +544 -0
- package/dist/server/index.js +3555 -6350
- package/dist/server/index.mjs +3555 -6350
- package/package.json +30 -19
- package/pics/analytics.png +0 -0
- package/pics/dashboard-dark.png +0 -0
- package/pics/dashboard.png +0 -0
- package/pics/dashboardsessionmodal.png +0 -0
- package/pics/mobile-dashboard.png +0 -0
- package/pics/mobile-session.png +0 -0
- package/pics/sessioninfopanel.png +0 -0
- package/pics/settings1.png +0 -0
- package/pics/settings2.png +0 -0
- package/pics/widget.png +0 -0
- package/scripts/geoip-updater.cjs +266 -36
- package/scripts/update-geoip-db.mjs +3 -0
- package/dist/admin/Analytics-CsrpxJwQ.mjs +0 -497
- package/dist/admin/Analytics-D03ZNNMR.js +0 -499
- package/dist/admin/App-B2VCS3cz.js +0 -1481
- package/dist/admin/App-qxKnK7G2.mjs +0 -1479
- package/dist/admin/License-ClW7sZLR.mjs +0 -318
- package/dist/admin/License-fixnQ7wF.js +0 -320
- package/dist/admin/OnlineUsersWidget-mR_OMiwi.mjs +0 -185
- package/dist/admin/OnlineUsersWidget-qb9utPBy.js +0 -185
- package/dist/admin/Settings-U3V4eGMo.mjs +0 -2038
- package/dist/admin/Settings-gv2BF54w.js +0 -2040
- package/dist/admin/StyledButtons-Cz8oYhmc.mjs +0 -418
- package/dist/admin/StyledButtons-DDuxnYz8.js +0 -419
- package/dist/admin/de-BnqGCokx.js +0 -316
- package/dist/admin/de-JBE-iylO.mjs +0 -316
- package/dist/admin/en-BRmVwd8-.js +0 -316
- package/dist/admin/en-kQWtdEai.mjs +0 -316
- package/dist/admin/es-CH691xcL.js +0 -301
- package/dist/admin/es-DOQvBxih.mjs +0 -301
- package/dist/admin/fr-CLExO0w_.js +0 -301
- package/dist/admin/fr-CmfCpepX.mjs +0 -301
- package/dist/admin/index-B_lFjUAg.mjs +0 -551
- package/dist/admin/index-Duc7cR_d.js +0 -552
- package/dist/admin/pt-BJ_F0yNi.js +0 -301
- package/dist/admin/pt-BSzZdyAH.mjs +0 -301
- package/dist/admin/sessionStatus-D_fWEzgj.js +0 -11
- package/dist/admin/sessionStatus-kwggjEMw.mjs +0 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,101 @@
|
|
|
1
|
+
# [4.9.0](https://github.com/Schero94/Magic-Sessionmanager/compare/v4.8.0...v4.9.0) (2026-11-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **admin:** analytics and license desktop acceptance ([34a550a](https://github.com/Schero94/Magic-Sessionmanager/commit/34a550a569d287f420630379e0f7b1ded64338cc))
|
|
7
|
+
* **admin:** analytics and license mobile acceptance ([ef901b2](https://github.com/Schero94/Magic-Sessionmanager/commit/ef901b2d6a765da50a2f87fbc17e8d46b45dd544))
|
|
8
|
+
* **admin:** configuration desktop acceptance ([297a663](https://github.com/Schero94/Magic-Sessionmanager/commit/297a66316ee2dea7d9342010a18061a714ae75ad))
|
|
9
|
+
* **admin:** configuration mobile acceptance ([3a67244](https://github.com/Schero94/Magic-Sessionmanager/commit/3a67244b7575bb8c050c71c107f7fdb782c7d6bb))
|
|
10
|
+
* **admin:** remove DS-internal style overrides, panel link and page titles ([449564c](https://github.com/Schero94/Magic-Sessionmanager/commit/449564c6a4cdb4281366d9c01c51b4d4973d4b69))
|
|
11
|
+
* **admin:** sessions dashboard desktop acceptance ([7dabcf5](https://github.com/Schero94/Magic-Sessionmanager/commit/7dabcf5628bb706fd72e5c68dedde76acc725b17))
|
|
12
|
+
* **admin:** sessions dashboard mobile acceptance ([0d06e6d](https://github.com/Schero94/Magic-Sessionmanager/commit/0d06e6d13e0ccf0b9bb1e2ddecc4d61fda594975))
|
|
13
|
+
* **admin:** widget and user panel desktop acceptance ([14d942f](https://github.com/Schero94/Magic-Sessionmanager/commit/14d942f9089f33f865baba33e754ec835f4ca0d4))
|
|
14
|
+
* **admin:** widget and user panel mobile acceptance ([4b8d7b4](https://github.com/Schero94/Magic-Sessionmanager/commit/4b8d7b48fbfb9887e065bb1e95da36c705ca7718))
|
|
15
|
+
* resolve all ESLint findings ([b14636f](https://github.com/Schero94/Magic-Sessionmanager/commit/b14636f13147d30e12a47b84cb15c88f9f3da742))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **admin:** apply session information architecture to every screen ([9a4c30d](https://github.com/Schero94/Magic-Sessionmanager/commit/9a4c30dd2af47e4559d5c3521f7ee9d6938e39a9))
|
|
21
|
+
* **admin:** rebuild UI on shared Design System blocks and fix review findings ([187dbac](https://github.com/Schero94/Magic-Sessionmanager/commit/187dbacac505abc747e1f761d913f8dc74874bc6))
|
|
22
|
+
|
|
23
|
+
## [Unreleased]
|
|
24
|
+
|
|
25
|
+
Branch `claude/sessionmanager-ui-redesign`. Not yet accepted: see `GATES.md` and `gates/ui-redesign.md`. Whoever cuts the next release must fold this section into the generated release entry, so it does not stay behind as a second `[Unreleased]` block.
|
|
26
|
+
|
|
27
|
+
### Known issues in 4.8.0
|
|
28
|
+
|
|
29
|
+
4.8.0 was released before its acceptance gates closed, although its release-readiness audit said not to publish. It is not accepted. Known defects in 4.8.0, fixed on this branch:
|
|
30
|
+
|
|
31
|
+
* The Session Details dialog has no accessible name, and focus can land on the page body after Escape.
|
|
32
|
+
* Settings field hints, including the GeoIP privacy disclosure, never render.
|
|
33
|
+
* Three Settings alerts have close buttons without a name; country chips cannot be removed with the keyboard.
|
|
34
|
+
* In `legacy-support` mode, a password reset leaves the user's older sessions usable.
|
|
35
|
+
* A failed block followed by a retry of the bodyless toggle unblocks the user.
|
|
36
|
+
* The Content API rate limiter is keyed on the raw request path, so varying the path opens a fresh budget.
|
|
37
|
+
|
|
38
|
+
### Changed
|
|
39
|
+
|
|
40
|
+
* **Terminology and information architecture** (`docs/plans/2026-11-06-ui-information-architecture.md`). One term per concept on every screen and in all five locales: **End** a session (it stops working, the record stays), **Delete record** (history removed; an open session also ends), **Block user** (no sign-in, all open sessions end). "Terminate", "Terminated", "Clean now", "Remove session details", "Activation" and "Online" for sessions are retired. "Online" now describes users only: a user is online when at least one of their sessions is Active. German uses "Sitzung", "Im Leerlauf", "sperren" for accounts only and formal "Sie" throughout.
|
|
41
|
+
* **Session states:** a session is **Active** (open and used within the inactivity timeout), **Idle** (open, unused for longer than the timeout) or **Ended**, and an ended session shows its **end reason**: Logged out, Timed out, Expired, Ended manually, User blocked, or Reason not recorded. Idle covers open sessions only; sessions closed by the idle check show "Ended · Timed out" instead of a red "Terminated" badge. Danger colour is no longer a session state. Rows without a stored reason show "Reason not recorded" instead of being guessed as "Logged out".
|
|
42
|
+
* **Settings navigation:** the three links under Settings › Session Manager are **Configuration** (was "General"), **Analytics** and **License** (was "Activation"); routes are unchanged. Configuration has five tabs, deep-linkable with `?tab=`: **Sessions**, **Login protection**, **Location data**, **Alerts**, **Data and retention**. "Reset" is now **Discard changes** (it re-loads the stored values and asks first); "Clean now" is now **Delete ended sessions** and states that idle sessions are not affected. The footer says that other server processes apply saved changes within 30 seconds, instead of "immediately". Login protection copy states that it acts on new sign-ins only and that the IP lockout locks out an IP address for 15 minutes, not the user account. Webhook copy names Discord and Slack only ("or custom endpoints" removed). Country rules read "Allow only listed countries" / "Reject listed countries".
|
|
43
|
+
* **Home widget "Online users":** tiles are Online users (of all registered users), Active sessions, Idle sessions and Blocked users. "Online" follows the configured inactivity timeout (`isTrulyActive`) like every other screen, instead of fixed 15 and 30 minute windows; the "Last 15 min", "Last 30 min" and "Offline" tiles are removed, so numbers differ from earlier releases.
|
|
44
|
+
* **On-demand location lookup:** the Session details dialog no longer calls `GET /geolocation/:ip` when it opens. Sessions without a stored location offer a **Look up location** button with a note that the IP address can be sent to ipapi.co.
|
|
45
|
+
* **Export:** CSV and JSON exports gain an additive **End reason** column. Existing columns are unchanged, but the Status value of rows without a stored reason changes (see Session states).
|
|
46
|
+
* **Analytics:** "Online now" is now **Active sessions**; "Logins today / this week" are **Sign-ins in the last 24 hours / last 7 days** (rolling windows). Devices come from the stored device type, with an "Unknown" bucket for sessions without a user agent.
|
|
47
|
+
* **Admin UI redesign** to match Strapi's own screens. Shared building blocks (`PageShell`, `SectionCard`, `StatGrid`, `PropertyList`, `StatusBadge`, `ConfirmAction`) are used on every page. Only Design System components, spacing tokens and breakpoints are used: no emoji, colour literals or px font sizes.
|
|
48
|
+
* **Dashboard:** export menu (CSV, JSON) in the header; Strapi search, status filter and refresh in one action bar; four equal stat cards (Active, Idle, Ended, All) that set the status filter; status filter (All sessions, Open, Active, Idle, Ended) with an End reason filter for ended sessions; row actions View details, End session (disabled on ended rows) and More actions › Delete record; Design System table without a fixed minimum width, so the Actions column is no longer clipped; row actions reachable by keyboard; page, page size, status and search kept in the URL; native pagination; refreshing keeps the table and the focus in place; an alert when only the latest 1,000 sessions are loaded. Between the medium and large breakpoints the IP address and Signed in columns are hidden; below the medium breakpoint the table becomes a card list.
|
|
49
|
+
* **Session details:** named dialog with device icon and status badge; sections for user, session, device, location and security, and technical details; copy button for the session ID; a state sentence that explains why the session is in its state; "Ended at" and "End reason" rows; the security score as "{score}/100" with its threshold note; separate VPN and proxy values; **End session** asks for confirmation, and ended sessions show "This session has already ended." instead.
|
|
50
|
+
* **Settings:** split into the five Configuration tabs above with Save and Discard changes in the header, a warning before leaving with unsaved changes, inline validation, and a form that shows what the server actually stored after saving. "Copy for .env" quotes the value so `#` survives. A newly generated key stays hidden until revealed. Countries are chosen with a searchable combobox. The privacy note on IP lookups sits next to the switch that enables them.
|
|
51
|
+
* **Analytics, License, home widget, user panel:** equal-height cards and readable bar labels; license details as a property list with a masked key; widget tiles in a 2×2 grid; the user panel shows Online / Not online, "{n} open sessions" and the last activity, with **End all sessions** and **Block user** as equal buttons with confirmation (Unblock user without confirmation) and a "Show all sessions" link to the dashboard filtered by the user's email. After block or unblock the open Content Manager form is updated, so a later Save does not undo it.
|
|
52
|
+
* Destructive actions use Strapi's confirmation dialog instead of `window.confirm`.
|
|
53
|
+
* All visible text is translated in English, German (formal "Sie"), French, Spanish and Portuguese, and dates use the admin locale.
|
|
54
|
+
* CSV and JSON exports use stable English column names, write device type keys (for example `desktop`) and leave missing values empty instead of writing the translated word "Unavailable". Invalid timestamps no longer abort the CSV export.
|
|
55
|
+
* Server-side store and provider failures now return 500 (502 for a failed MaxMind download, 503 when the licence server is unreachable) instead of 400. The `{ data: null, error }` envelope is unchanged; clients that check for 400 must be updated.
|
|
56
|
+
* Admin session lists no longer include the internal `sessionId` field. Actions use `documentId`; the Content API `/my-sessions` response keeps `sessionId`.
|
|
57
|
+
* `POST /magic-sessionmanager/user/:userId/toggle-block` accepts `{ "blocked": true | false }` to set the state, which is safe to retry and is what the admin UI sends. A request without a body still toggles, as before, but is deprecated. A `blocked` value that is not a boolean returns 400. The response adds `mode` (`explicit` or `toggle`).
|
|
58
|
+
* Session objects in admin and Content API responses no longer include `nativeSessionId` (token and token-hash fields were already removed).
|
|
59
|
+
* Admin `POST /magic-sessionmanager/sessions/:sessionId/terminate` returns 404 for an unknown session, and `POST /magic-sessionmanager/user/:userId/terminate-all` returns 404 for an unknown user. Both answered 200 before.
|
|
60
|
+
* Admin `POST /magic-sessionmanager/sessions/clean-inactive` returns 500 with `deletedCount` and `failedCount` when some records cannot be removed, instead of stopping and reporting success.
|
|
61
|
+
* Settings `PUT`: a webhook URL on a host other than Discord or Slack is rejected with a field error instead of being saved as empty, and an email template longer than its limit (subject 200, HTML 10,000, text 5,000 characters) is rejected instead of being cut off.
|
|
62
|
+
* The opt-in `plugin::magic-sessionmanager.session-required` policy follows the global token check more closely. With Strict token check it now also returns 401 when the user cannot be resolved, when settings or the session lookup fail, and, with `jwtManagement: 'refresh'`, when Strapi verified no native session or the session row does not match it. Relaxed behaviour is unchanged. No plugin route attaches the policy.
|
|
63
|
+
* If the plugin settings cannot be read from the store, IP location lookup is turned off as well (Strict token check was already enforced in that case) until the store recovers, so the static defaults cannot override a saved opt-out.
|
|
64
|
+
* Every admin page sets the browser tab title, for example "Sessions | Strapi".
|
|
65
|
+
|
|
66
|
+
### Fixed
|
|
67
|
+
|
|
68
|
+
* A successful password reset ends every older session of the user in both JWT modes; if that fails, the reset fails closed.
|
|
69
|
+
* The Content API rate limiter keys buckets on the matched route instead of the raw path, and admin settings can only make the write limit stricter.
|
|
70
|
+
* A partial settings update keeps omitted fields; invalid values are rejected with field errors instead of being clamped silently.
|
|
71
|
+
* `store-key` rejects non-string keys and invalid emails before calling the licence server.
|
|
72
|
+
* Deleting another user's session answers exactly like a missing session, so session IDs cannot be probed.
|
|
73
|
+
* Blocking a user from the admin revokes the user's sessions once instead of twice.
|
|
74
|
+
* `tests/isolated-fallback-logout-http.test.js` skips with a clear message instead of failing when no Strapi host dependencies are available.
|
|
75
|
+
* iPad user agents are recorded as tablets, and iPhone and iPad sessions report iOS instead of macOS.
|
|
76
|
+
* IPv4-mapped IPv6 addresses in expanded or hexadecimal form are recognised as private or loopback addresses, so they are no longer sent to a location provider.
|
|
77
|
+
|
|
78
|
+
### Documentation and maintenance
|
|
79
|
+
|
|
80
|
+
* README and the project site (`docs/site`) are rewritten for the new screens and terminology. They include a configuration, Content API and Admin API reference checked against the code, a section on the opt-in `session-required` policy and a maintenance status. The screenshots in `pics/` and `docs/site/img/` are new and show synthetic data only.
|
|
81
|
+
* Dependabot proposes weekly patch and minor updates. A workflow merges a Dependabot pull request that is not a major update once tests, type checks, build, verify and a critical-level production audit pass. The lint step runs only if a `lint` script exists, and there is none yet. Merges use `GITHUB_TOKEN`, so they do not trigger the release workflow.
|
|
82
|
+
|
|
83
|
+
# [4.8.0](https://github.com/Schero94/Magic-Sessionmanager/compare/v4.7.2...v4.8.0) (2026-11-06)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
### Bug Fixes
|
|
87
|
+
|
|
88
|
+
* align CI installs with lockfile settings ([ad9e7ed](https://github.com/Schero94/Magic-Sessionmanager/commit/ad9e7eda60e4a5e5f7479532085946869e3d7f96))
|
|
89
|
+
* pass npm credentials to release workflow ([6a6d17d](https://github.com/Schero94/Magic-Sessionmanager/commit/6a6d17d740c8b6a80d72b057a548a8c649ba3651))
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
### Features
|
|
93
|
+
|
|
94
|
+
* add Strapi-native end-user session management ([2f00880](https://github.com/Schero94/Magic-Sessionmanager/commit/2f00880337bf590e4e5cbc8059c31fd0d18aee05))
|
|
95
|
+
* improve session settings and admin access ([36ccd50](https://github.com/Schero94/Magic-Sessionmanager/commit/36ccd503433a7b8d6ade9e7d0ec971ba124518aa))
|
|
96
|
+
|
|
97
|
+
The native Strapi Users & Permissions end-user session support from 2f00880 covers sessions with `jwtManagement: 'refresh'` and keeps `legacy-support`, Magic session metadata and history, and the existing endpoint contracts. The plugin does not change host authentication configuration. Strapi administrator-account sessions remain out of scope. (Moved here from a stale `[Unreleased]` block on 2026-11-06.)
|
|
98
|
+
|
|
1
99
|
## [4.7.2](https://github.com/Schero94/Magic-Sessionmanager/compare/v4.7.1...v4.7.2) (2026-07-11)
|
|
2
100
|
|
|
3
101
|
|