@smartkomm/plexus-cli 0.1.113 → 0.1.115

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.
@@ -1 +1 @@
1
- effeb4f676a0730edb1edb68487b6ad82d4c1c0432f47e0068cd0883106ea169
1
+ 2c3689e8a77f42113b30a8a06ba80f5760e15064762362d0b314bc5c66ea5ebb
@@ -1,53 +1,50 @@
1
1
  # Set how families sign in
2
2
 
3
- **When to use:** a school decides how long the sign-in link in its letters
4
- works — forever, for N days, or once (and then 12 hours signed in).
3
+ **When to use:** a new tenant config states how families sign in, or an old
4
+ export carrying a retired mode is refused on apply.
5
5
 
6
6
  ## What it is
7
7
 
8
- `tenant.externalSignIn` in the tenant config, **required** in every config:
8
+ `tenant.externalSignIn` in the tenant config, **required** in every config, with
9
+ one value:
9
10
 
10
11
  | Value | The link in a sign-in letter | A session it opens |
11
12
  |---|---|---|
12
13
  | `{ "mode": "oneTimeLink" }` | works once, 15 minutes; an old one says „abgelaufen" and offers a new one | ends 12 hours after sign-in |
13
- | `{ "mode": "periodLink", "validDays": 7 }` | works as often as opened, for 1–90 days from the letter | 7 days, refreshed while used |
14
- | `{ "mode": "permanentLink" }` | works as often as opened, without an end | 7 days, refreshed while used |
15
14
 
16
15
  - „Sign-in letters" are the school's three: access sent from the cockpit
17
16
  (`applicant.accessSent`), „Link anfordern" in the portal (`applicant.magicLink`)
18
- and the parked-draft letter. „Link kopieren" in the cockpit is always a
19
- one-time link; the login page's link (`/login`) too.
20
- - An account at several schools follows the **strictest** of them.
21
- - A switch acts at once: an access link is checked against the mode in force
22
- when it is OPENED (a switch to `oneTimeLink` retires all of them), and every
23
- open session meets the new 12-hour limit within 15 minutes (the Convex token
24
- lifetime).
25
- - Data-protection view: a one-time link ties a sign-in to the mailbox owner at
26
- that moment; a reusable link can be opened by whoever holds the mail. Choose
27
- `oneTimeLink` where a submission must be attributable to one person.
28
-
29
- ## Set it (dry run first)
17
+ and the parked-draft letter. „Link kopieren" in the cockpit and the login
18
+ page's link (`/login`) are the same kind of link.
19
+ - The reusable modes `permanentLink` and `periodLink` are retired. A config
20
+ naming one is refused with `[auth/externalSignInRetired]`; an access link
21
+ mailed under them opens nothing and lands on the school's portal sign-in
22
+ (`/<tenant>/e/applications?link=invalid`).
23
+
24
+ ## Repair an old export
25
+
26
+ An export taken before the retirement may still say `periodLink` /
27
+ `permanentLink`. Replace the value, then plan and apply:
30
28
 
31
29
  ```bash
32
30
  plexus-cli --env staging config set --tenant <slug> --target tenant \
33
- --key <slug> --field externalSignIn --value '{"mode":"periodLink","validDays":7}'
31
+ --key <slug> --field externalSignIn --value '{"mode":"oneTimeLink"}'
34
32
  plexus-cli --env staging config set --tenant <slug> --target tenant \
35
- --key <slug> --field externalSignIn --value '{"mode":"periodLink","validDays":7}' --confirm
33
+ --key <slug> --field externalSignIn --value '{"mode":"oneTimeLink"}' --confirm
36
34
  ```
37
35
 
38
- A wrong shape is refused (`[auth/externalSignIn]`). Platform-owned: a school's
39
- own administrator cannot change it.
36
+ Platform-owned: a school's own administrator cannot change it.
40
37
 
41
38
  ## Verify
42
39
 
43
40
  - Platform → „Mandanten" → the school → Bewerbungsmanagement → „Anmeldung für
44
- Familien" shows the config spelling (`oneTimeLink`, `periodLink, validDays 7`, …).
41
+ Familien" shows `oneTimeLink`.
45
42
  - Send yourself „Zugang versenden → Per Mail senden" on a test application: the
46
- letter says „Der Link gilt 15 Minuten" / „7 Tage" / „unbefristet".
43
+ letter says „Der Link gilt 15 Minuten".
47
44
 
48
45
  ## Gotchas
49
46
 
50
- - A reusable link in a forwarded mail signs in whoever opens it — the cockpit's
51
- „Zugangslinks sperren" ends every access link of that family at the school.
52
- - Access links also end when the account gains reach (another school, staff
53
- rights) or its login address is changed by someone else.
47
+ - A config export of a tenant the migration `retireReusableSignInLinks` has not
48
+ reached yet fails loud (`[auth/externalSignInRetired]`) — run the migration
49
+ (`migrations:run '{"fn":"migrations:retireReusableSignInLinks"}'`), never
50
+ edit the row.