@smartkomm/plexus-cli 0.1.114 → 0.1.116
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
|
-
|
|
1
|
+
2c3689e8a77f42113b30a8a06ba80f5760e15064762362d0b314bc5c66ea5ebb
|
|
@@ -1,53 +1,50 @@
|
|
|
1
1
|
# Set how families sign in
|
|
2
2
|
|
|
3
|
-
**When to use:** a
|
|
4
|
-
|
|
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
|
|
19
|
-
|
|
20
|
-
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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":"
|
|
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":"
|
|
33
|
+
--key <slug> --field externalSignIn --value '{"mode":"oneTimeLink"}' --confirm
|
|
36
34
|
```
|
|
37
35
|
|
|
38
|
-
|
|
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
|
|
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"
|
|
43
|
+
letter says „Der Link gilt 15 Minuten".
|
|
47
44
|
|
|
48
45
|
## Gotchas
|
|
49
46
|
|
|
50
|
-
- A
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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.
|